mirror of
https://github.com/python/cpython.git
synced 2025-10-18 04:38:07 +00:00
Issue #22333: Add debug traces to test_threaded_import
This commit is contained in:
parent
654c037b65
commit
b39b918baa
1 changed files with 4 additions and 2 deletions
|
@ -118,8 +118,10 @@ class ThreadedImportTests(unittest.TestCase):
|
||||||
t = threading.Thread(target=task,
|
t = threading.Thread(target=task,
|
||||||
args=(N, done, done_tasks, errors,))
|
args=(N, done, done_tasks, errors,))
|
||||||
t.start()
|
t.start()
|
||||||
self.assertTrue(done.wait(60))
|
completed = done.wait(60)
|
||||||
self.assertFalse(errors)
|
dbg_info = 'done: %s/%s' % (len(done_tasks), N)
|
||||||
|
self.assertFalse(errors, dbg_info)
|
||||||
|
self.assertTrue(completed, dbg_info)
|
||||||
if verbose:
|
if verbose:
|
||||||
print("OK.")
|
print("OK.")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue