[Python-checkins] cpython: Issue #22333: Extend timeout in test_threaded_import
victor.stinner
python-checkins at python.org
Wed Oct 1 01:49:44 CEST 2014
https://hg.python.org/cpython/rev/926c380aa423
changeset: 92697:926c380aa423
user: Victor Stinner <victor.stinner at gmail.com>
date: Wed Oct 01 01:45:16 2014 +0200
summary:
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).
files:
Lib/test/test_threaded_import.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_threaded_import.py b/Lib/test/test_threaded_import.py
--- a/Lib/test/test_threaded_import.py
+++ b/Lib/test/test_threaded_import.py
@@ -118,7 +118,7 @@
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)
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list