aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_bz2.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_bz2.py')
-rw-r--r--Lib/test/test_bz2.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_bz2.py b/Lib/test/test_bz2.py
index 78b95d88faa..91ccff2d0c0 100644
--- a/Lib/test/test_bz2.py
+++ b/Lib/test/test_bz2.py
@@ -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):