]> granicus.if.org Git - python/commitdiff
Issue #22333: Extend timeout in test_threaded_import
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 30 Sep 2014 23:45:16 +0000 (01:45 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 30 Sep 2014 23:45:16 +0000 (01:45 +0200)
Check if the sporadic failure is related to a timeout.
The test just failed on the buildbot "x86 Windows7 3.x": 1 thread done / 20
(the 'done' condition was not signaled because 1 < 20).

Lib/test/test_threaded_import.py

index 5a362ba6f75144279b53356ffb0d24b4b313a7fd..9afaa78cc7cb078fc3a00c934a68f2f3809063b5 100644 (file)
@@ -118,7 +118,7 @@ class ThreadedImportTests(unittest.TestCase):
                 t = threading.Thread(target=task,
                                      args=(N, done, done_tasks, errors,))
                 t.start()
-            completed = done.wait(60)
+            completed = done.wait(10 * 60)
             dbg_info = 'done: %s/%s' % (len(done_tasks), N)
             self.assertFalse(errors, dbg_info)
             self.assertTrue(completed, dbg_info)