mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix tests: add sleep to the main thread in order to stop in the child threads on the slow IronPython.
This commit is contained in:
@@ -4,6 +4,7 @@ except :
|
||||
import _thread as thread
|
||||
|
||||
import threading
|
||||
from time import sleep
|
||||
|
||||
def bar(y):
|
||||
z = 100 + y
|
||||
@@ -22,5 +23,5 @@ def foo(x):
|
||||
id = thread.start_new_thread(foo, (1,))
|
||||
|
||||
while True:
|
||||
pass
|
||||
sleep(1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user