8000 Adds missing assert · pythonnet/pythonnet@4f0420e · GitHub
[go: up one dir, main page]

Skip to content

Commit 4f0420e

Browse files
committed
Adds missing assert
Addresses comment: #958
1 parent 9b62a61 commit 4f0420e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/embed_tests/TestDomainReload.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ public override ValueType Execute(ValueType arg)
133133
{
134134
IntPtr tp = Runtime.Runtime.PyObject_TYPE(handle);
135135
IntPtr tp_clear = Marshal.ReadIntPtr(tp, TypeOffset.tp_clear);
136+
Assert.That(tp_clear, Is.Not.Null);
136137

137138
using (PyObject obj = new PyObject(handle))
138139
{

0 commit comments

Comments
 (0)
0