Skip to content

Commit 6f10641

Browse files
committed
PyImport test validate no initialization failures
1 parent c4f2ad7 commit 6f10641

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/embed_tests/pyimport.cs

+2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ public void SetUp()
3434
TestContext.Out.WriteLine(testPath);
3535

3636
IntPtr str = Runtime.Runtime.PyString_FromString(testPath);
37+
Assert.IsFalse(str == IntPtr.Zero);
3738
BorrowedReference path = Runtime.Runtime.PySys_GetObject("path");
39+
Assert.IsFalse(path.IsNull);
3840
Runtime.Runtime.PyList_Append(path, str);
3941
Runtime.Runtime.XDecref(str);
4042
}

0 commit comments

Comments
 (0)