Skip to content
This repository was archived by the owner on Jul 22, 2023. It is now read-only.

Commit 4f0420e

Browse files
committed
Adds missing assert
Addresses comment: pythonnet#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)