]> granicus.if.org Git - python/commitdiff
Make test.support.reap_threads() faster
authorAntoine Pitrou <solipsis@pitrou.net>
Fri, 16 Aug 2013 19:02:02 +0000 (21:02 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Fri, 16 Aug 2013 19:02:02 +0000 (21:02 +0200)
Lib/test/support/__init__.py

index 286768817840c23b9c0d061deec995f6b475e66a..59f7fccf09d6787f1f8c8147a4d0f8d3fbf540f1 100644 (file)
@@ -1750,12 +1750,12 @@ def threading_setup():
 def threading_cleanup(*original_values):
     if not _thread:
         return
-    _MAX_COUNT = 10
+    _MAX_COUNT = 100
     for count in range(_MAX_COUNT):
         values = _thread._count(), threading._dangling
         if values == original_values:
             break
-        time.sleep(0.1)
+        time.sleep(0.01)
         gc_collect()
     # XXX print a warning in case of failure?