From c67a468d9b02e396c184305dc7b1bbb97982cf7b Mon Sep 17 00:00:00 2001 From: Elizaveta Shashkova Date: Thu, 25 Feb 2016 17:08:59 +0300 Subject: [PATCH] Fix tests: add sleep to the main thread in order to stop in the child threads on the slow IronPython. --- python/testData/debug/test_multithread.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/testData/debug/test_multithread.py b/python/testData/debug/test_multithread.py index e1d788339430..c59bb60cd472 100644 --- a/python/testData/debug/test_multithread.py +++ b/python/testData/debug/test_multithread.py @@ -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)