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()
128
128
sys . testattr2 = sys . testattr1 ;
129
129
130
130
// Compare in Python
131
- PyObject res = PythonEngine . RunString (
131
+ PythonEngine . RunSimpleString (
132
132
"import sys\n " +
133
133
"sys.testattr3 = sys.testattr1 is sys.testattr2\n "
134
134
) ;
135
+
135
136
Assert . AreEqual ( sys . testattr3 . ToString ( ) , "True" ) ;
136
137
137
138
// Compare in .NET
Original file line number Diff line number Diff line change @@ -269,7 +269,7 @@ public enum MachineType
269
269
/// <summary>
270
270
/// Initialize the runtime...
271
271
/// </summary>
272
- internal static void Initialize ( bool initSigs )
272
+ internal static void Initialize ( bool initSigs = false )
273
273
{
274
274
if ( Py_IsInitialized ( ) == 0 )
275
275
{
You can’t perform that action at this time.
0 commit comments