Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7765474 commit dca4101Copy full SHA for dca4101
src/embed_tests/dynamic.cs
@@ -128,10 +128,11 @@ public void PassPyObjectInNet()
128
sys.testattr2 = sys.testattr1;
129
130
// Compare in Python
131
- PyObject res = PythonEngine.RunString(
+ PythonEngine.RunSimpleString(
132
"import sys\n" +
133
"sys.testattr3 = sys.testattr1 is sys.testattr2\n"
134
);
135
+
136
Assert.AreEqual(sys.testattr3.ToString(), "True");
137
138
// Compare in .NET
src/runtime/runtime.cs
@@ -269,7 +269,7 @@ public enum MachineType
269
/// <summary>
270
/// Initialize the runtime...
271
/// </summary>
272
- internal static void Initialize(bool initSigs)
+ internal static void Initialize(bool initSigs = false)
273
{
274
if (Py_IsInitialized() == 0)
275
0 commit comments