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()
63
63
const string expected = "foo" ;
64
64
65
65
var t = new PyAnsiString ( expected ) ;
66
+ Runtime . Runtime . XIncref ( t . Handle ) ;
66
67
var actual = new PyAnsiString ( t . Handle ) ;
67
68
68
69
Assert . AreEqual ( expected , actual . ToString ( ) ) ;
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ public void Dispose()
25
25
public void IntPtrCtor ( )
26
26
{
27
27
var i = new PyFloat ( 1 ) ;
28
+ Runtime . Runtime . XIncref ( i . Handle ) ;
28
29
var ii = new PyFloat ( i . Handle ) ;
29
30
Assert . AreEqual ( i . Handle , ii . Handle ) ;
30
31
}
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ public void TestCtorPtr()
64
64
const string expected = "foo" ;
65
65
66
66
var t = new PyString ( expected ) ;
67
+ Runtime . Runtime . XIncref ( t . Handle ) ;
67
68
var actual = new PyString ( t . Handle ) ;
68
69
69
70
Assert . AreEqual ( expected , actual . ToString ( ) ) ;
You can’t perform that action at this time.
0 commit comments