diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-09-04 07:38:38 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-09-04 07:38:38 (GMT) |
commit | b39b918baa8a6a9c3062b8fea214d86ca3b147e4 (patch) | |
tree | 47c6b80ed5ada8bf53407d781fb2b2dd6617cd51 /Lib/test/test_threaded_import.py | |
parent | 654c037b658ed6594a7dea83b58a58b24ec7f250 (diff) | |
download | cpython-b39b918baa8a6a9c3062b8fea214d86ca3b147e4.zip cpython-b39b918baa8a6a9c3062b8fea214d86ca3b147e4.tar.gz cpython-b39b918baa8a6a9c3062b8fea214d86ca3b147e4.tar.bz2 |
Issue #22333: Add debug traces to test_threaded_import
Diffstat (limited to 'Lib/test/test_threaded_import.py')
-rw-r--r-- | 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 index c7bfea0..5a362ba 100644 --- a/Lib/test/test_threaded_import.py +++ b/Lib/test/test_threaded_import.py @@ -118,8 +118,10 @@ class ThreadedImportTests(unittest.TestCase): 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.") |