summaryrefslogtreecommitdiff
path: root/Lib/test/test_threadedtempfile.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_threadedtempfile.py')
-rw-r--r--Lib/test/test_threadedtempfile.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/Lib/test/test_threadedtempfile.py b/Lib/test/test_threadedtempfile.py
index e1d7a10179..f3d4ba3637 100644
--- a/Lib/test/test_threadedtempfile.py
+++ b/Lib/test/test_threadedtempfile.py
@@ -13,22 +13,19 @@ quickly. Guido reports needing to boost FILES_PER_THREAD to 500 before
provoking a 2.0 failure under Linux.
"""
+NUM_THREADS = 20
+FILES_PER_THREAD = 50
+
import tempfile
-from test.support import start_threads
+from test.support import start_threads, import_module
import unittest
import io
import threading
from traceback import print_exc
-
-NUM_THREADS = 20
-FILES_PER_THREAD = 50
-
-
startEvent = threading.Event()
-
class TempFileGreedy(threading.Thread):
error_count = 0
ok_count = 0