diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-07-02 13:34:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-02 13:34:55 +0200 |
commit | c45e0d58bc0f949dd5db3aa9035e27e032b19ca1 (patch) | |
tree | 3391212bc1fc535c7fe766fdcf4ab4e8e63ec58a /Lib/test/test_threadedtempfile.py | |
parent | c53173aa00689aa1be17ce5406289718f6b30532 (diff) | |
download | cpython-git-revert-14522-remove_unused_imports37.tar.gz |
Revert "Remove unused imports in tests (GH-14518) (GH-14522)"revert-14522-remove_unused_imports37
This reverts commit e34b5f4d6483187969d5149c801d056b72ef2ddb.
Diffstat (limited to 'Lib/test/test_threadedtempfile.py')
-rw-r--r-- | Lib/test/test_threadedtempfile.py | 11 |
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 |