mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
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).
This commit is contained in:
parent
cd09571894
commit
d7722d7147
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue