[Python-checkins] cpython: Issue #22333: Add debug traces to test_threaded_import
victor.stinner
python-checkins at python.org
Thu Sep 4 09:38:55 CEST 2014
http://hg.python.org/cpython/rev/f8d2834e1269
changeset: 92330:f8d2834e1269
user: Victor Stinner <victor.stinner at gmail.com>
date: Thu Sep 04 09:38:38 2014 +0200
summary:
Issue #22333: Add debug traces to test_threaded_import
files:
Lib/test/test_threaded_import.py | 6 ++++--
1 files changed, 4 insertions(+), 2 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,8 +118,10 @@
t = threading.Thread(target=task,
args=(N, done, done_tasks, errors,))
t.start()
- self.assertTrue(done.wait(60))
- self.assertFalse(errors)
+ completed = done.wait(60)
+ dbg_info = 'done: %s/%s' % (len(done_tasks), N)
+ self.assertFalse(errors, dbg_info)
+ self.assertTrue(completed, dbg_info)
if verbose:
print("OK.")
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list