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 @@ -102,6 +102,7 @@ public void TestCtorDouble()
102
102
public void TestCtorPtr ( )
103
103
{
104
104
var i = new PyLong ( 5 ) ;
105
+ Runtime . Runtime . XIncref ( i . Handle ) ;
105
106
var a = new PyLong ( i . Handle ) ;
106
107
Assert . AreEqual ( 5 , a . ToInt32 ( ) ) ;
107
108
}
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