mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
bpo-40275: Adding threading_helper submodule in test.support (GH-20263)
This commit is contained in:
parent
7d80b35af1
commit
e80697d687
46 changed files with 483 additions and 428 deletions
|
@ -37,7 +37,8 @@ from email import iterators
|
|||
from email import base64mime
|
||||
from email import quoprimime
|
||||
|
||||
from test.support import unlink, start_threads
|
||||
from test.support import threading_helper
|
||||
from test.support import unlink
|
||||
from test.test_email import openfile, TestEmailBase
|
||||
|
||||
# These imports are documented to work, but we are testing them using a
|
||||
|
@ -3241,7 +3242,7 @@ Foo
|
|||
append(make_msgid(domain='testdomain-string'))
|
||||
|
||||
threads = [MsgidsThread() for i in range(5)]
|
||||
with start_threads(threads):
|
||||
with threading_helper.start_threads(threads):
|
||||
pass
|
||||
all_ids = sum([t.msgids for t in threads], [])
|
||||
self.assertEqual(len(set(all_ids)), len(all_ids))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue