File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -128,10 +128,11 @@ public void PassPyObjectInNet()
128128 sys . testattr2 = sys . testattr1 ;
129129
130130 // Compare in Python
131- PyObject res = PythonEngine . RunString (
131+ PythonEngine . RunSimpleString (
132132 "import sys\n " +
133133 "sys.testattr3 = sys.testattr1 is sys.testattr2\n "
134134 ) ;
135+
135136 Assert . AreEqual ( sys . testattr3 . ToString ( ) , "True" ) ;
136137
137138 // Compare in .NET
Original file line number Diff line number Diff line change @@ -269,7 +269,7 @@ public enum MachineType
269269 /// <summary>
270270 /// Initialize the runtime...
271271 /// </summary>
272- internal static void Initialize ( bool initSigs )
272+ internal static void Initialize ( bool initSigs = false )
273273 {
274274 if ( Py_IsInitialized ( ) == 0 )
275275 {
You can’t perform that action at this time.
0 commit comments