mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +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
|
|
@ -12,6 +12,7 @@ import random
|
|||
import shutil
|
||||
import subprocess
|
||||
import threading
|
||||
from test.support import threading_helper
|
||||
from test.support import unlink
|
||||
import _compression
|
||||
import sys
|
||||
|
|
@ -502,7 +503,7 @@ class BZ2FileTest(BaseTest):
|
|||
for i in range(5):
|
||||
f.write(data)
|
||||
threads = [threading.Thread(target=comp) for i in range(nthreads)]
|
||||
with support.start_threads(threads):
|
||||
with threading_helper.start_threads(threads):
|
||||
pass
|
||||
|
||||
def testMixedIterationAndReads(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue