summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_threaded_import.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-09-30 23:45:16 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-09-30 23:45:16 (GMT)
commitd7722d7147386a3bfac0a8b7e94ef0cbf5030b6f (patch)
tree79faeadf821f817a568dfa4120363ab7bb189e2a /Lib/test/test_threaded_import.py
parentcd09571894d8e0a872552082ee394b370f84b71c (diff)
downloadcpython-d7722d7147386a3bfac0a8b7e94ef0cbf5030b6f.zip
cpython-d7722d7147386a3bfac0a8b7e94ef0cbf5030b6f.tar.gz
cpython-d7722d7147386a3bfac0a8b7e94ef0cbf5030b6f.tar.bz2
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).
Diffstat (limited to 'Lib/test/test_threaded_import.py')
-rw-r--r--Lib/test/test_threaded_import.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_threaded_import.py b/Lib/test/test_threaded_import.py
index 5a362ba..9afaa78 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)