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 @@ -25,6 +25,7 @@ public void Dispose()
2525 public void IntPtrCtor ( )
2626 {
2727 var i = new PyFloat ( 1 ) ;
28+ Runtime . Runtime . XIncref ( i . Handle ) ;
2829 var ii = new PyFloat ( i . Handle ) ;
2930 Assert . AreEqual ( i . Handle , ii . Handle ) ;
3031 }
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