FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

PyImport test validate no initialization failures · saroad2/pythonnet@6f10641 · GitHub

Repository navigation

Commit 6f10641

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

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎src/embed_tests/pyimport.cs‎

Lines changed: 2 additions & 0 deletions
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)

Back | FazBrowse Home | New Git URL