]> granicus.if.org Git - python/commitdiff
sleep here
authorBenjamin Peterson <benjamin@python.org>
Mon, 23 Apr 2012 14:08:14 +0000 (10:08 -0400)
committerBenjamin Peterson <benjamin@python.org>
Mon, 23 Apr 2012 14:08:14 +0000 (10:08 -0400)
Lib/test/test_thread.py

index ae9a7d9527fdc65fb82a5edb60cb3762bd3b96e5..413889ad22690e1b801356cbb52326029c35945b 100644 (file)
@@ -150,7 +150,7 @@ class ThreadRunningTests(BasicThreadTest):
             thread.start_new_thread(task, ())
             started.acquire()
             while thread._count() > c:
-                pass
+                time.sleep(0.01)
         self.assertIn("Traceback", stderr.getvalue())