]> 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 41fb3acd7b3816f8cb511b234b49e8368f8815dd..a191e157bc3b25589c9ff2b3f4238013afeefefd 100644 (file)
@@ -148,7 +148,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())