File tree Expand file tree Collapse file tree 3 files changed +3
-0
lines changed
Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ public void TestCtorPtr()
6363 const string expected = "foo" ;
6464
6565 var t = new PyAnsiString ( expected ) ;
66+ Runtime . Runtime . XIncref ( t . Handle ) ;
6667 var actual = new PyAnsiString ( t . Handle ) ;
6768
6869 Assert . AreEqual ( expected , actual . ToString ( ) ) ;
Original file line number Diff line number Diff line change @@ -102,6 +102,7 @@ public void TestCtorDouble()
102102 public void TestCtorPtr ( )
103103 {
104104 var i = new PyLong ( 5 ) ;
105+ Runtime . Runtime . XIncref ( i . Handle ) ;
105106 var a = new PyLong ( i . Handle ) ;
106107 Assert . AreEqual ( 5 , a . ToInt32 ( ) ) ;
107108 }
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ public void TestCtorPtr()
6464 const string expected = "foo" ;
6565
6666 var t = new PyString ( expected ) ;
67+ Runtime . Runtime . XIncref ( t . Handle ) ;
6768 var actual = new PyString ( t . Handle ) ;
6869
6970 Assert . AreEqual ( expected , actual . ToString ( ) ) ;
You can’t perform that action at this time.
0 commit comments