From: Victor Stinner Date: Tue, 30 Sep 2014 23:45:16 +0000 (+0200) Subject: Issue #22333: Extend timeout in test_threaded_import X-Git-Tag: v3.5.0a1~804 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d7722d7147386a3bfac0a8b7e94ef0cbf5030b6f;p=thirdparty%2FPython%2Fcpython.git Issue #22333: Extend timeout in test_threaded_import 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). --- diff --git a/Lib/test/test_threaded_import.py b/Lib/test/test_threaded_import.py index 5a362ba6f751..9afaa78cc7cb 100644 --- a/Lib/test/test_threaded_import.py +++ b/Lib/test/test_threaded_import.py @@ -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)