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:
Elizaveta Shashkova
2016-02-25 17:35:45 +03:00
parent 71995cbdb4
commit c67a468d9b
+2 -1
View File
@@ -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)