8000 made InterruptTest more robust · pythonnet/pythonnet@f64194c · GitHub
[go: up one dir, main page]

Skip to content

Commit f64194c

Browse files
committed
made InterruptTest more robust
1 parent 3e1fc5b commit f64194c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/embed_tests/TestInterrupt.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ public void InterruptTest()
6666
{
6767
Interlocked.Exchange(ref pythonThreadID, (long)PythonEngine.GetPythonThreadID());
6868
return PythonEngine.RunSimpleString(@"
69-
import time
70-
7169
try:
70+
import time
71+
7272
while True:
7373
time.sleep(0.2)
7474
except KeyboardInterrupt:

0 commit comments

Comments
 (0)
0