summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_threadedtempfile.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-07-01 16:28:25 (GMT)
committerGitHub <noreply@github.com>2019-07-01 16:28:25 (GMT)
commit8f4ef3b019ce380022018587571b0f970e668de3 (patch)
treed3699d2cae322c515e7a81e516527324fadc2d4d /Lib/test/test_threadedtempfile.py
parentf9b7457bd7f438263e0d2dd1f70589ad56a2585e (diff)
downloadcpython-8f4ef3b019ce380022018587571b0f970e668de3.zip
cpython-8f4ef3b019ce380022018587571b0f970e668de3.tar.gz
cpython-8f4ef3b019ce380022018587571b0f970e668de3.tar.bz2
Remove unused imports in tests (GH-14518)
Diffstat (limited to 'Lib/test/test_threadedtempfile.py')
-rw-r--r--Lib/test/test_threadedtempfile.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/Lib/test/test_threadedtempfile.py b/Lib/test/test_threadedtempfile.py
index f3d4ba3..e1d7a10 100644
--- a/Lib/test/test_threadedtempfile.py
+++ b/Lib/test/test_threadedtempfile.py
@@ -13,19 +13,22 @@ 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, import_module
+from test.support import start_threads
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