Skip to content

Commit be2deb9

Browse files
committed
name TestThread scope better
1 parent 8a59713 commit be2deb9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/embed_tests/Modules.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@ public void TestThread()
317317
//After the proposal here https://github.com/pythonnet/pythonnet/pull/419 complished,
318318
//the BeginAllowThreads statement blow and the last EndAllowThreads statement
319319
//should be removed.
320+
ps = Py.CreateScope(nameof(TestThread));
320321
dynamic _ps = ps;
321322
var ts = PythonEngine.BeginAllowThreads();
322323
try

0 commit comments

Comments
 (0)