summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_threadedtempfile.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-04-14 14:35:43 (GMT)
committerGuido van Rossum <guido@python.org>2001-04-14 14:35:43 (GMT)
commit9df3eabd6ef2a0a177976eacb785e630680c0437 (patch)
tree965a7f5146ad0d96f22a799c3991f10ade467014 /Lib/test/test_threadedtempfile.py
parent7be8ca0d427c15ef0174623fc7c5a0691a97d08c (diff)
downloadcpython-9df3eabd6ef2a0a177976eacb785e630680c0437.zip
cpython-9df3eabd6ef2a0a177976eacb785e630680c0437.tar.gz
cpython-9df3eabd6ef2a0a177976eacb785e630680c0437.tar.bz2
Add "import thread" at the top of the module; this prevents us from
failing later when Python is compiled without threading but a failing 'threading' module can be imported due to an earlier (caught) attempt.
Diffstat (limited to 'Lib/test/test_threadedtempfile.py')
-rw-r--r--Lib/test/test_threadedtempfile.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_threadedtempfile.py b/Lib/test/test_threadedtempfile.py
index 5b06c18..9aa9376 100644
--- a/Lib/test/test_threadedtempfile.py
+++ b/Lib/test/test_threadedtempfile.py
@@ -20,6 +20,7 @@ via cmdline switches:
NUM_THREADS = 20 # change w/ -t option
FILES_PER_THREAD = 50 # change w/ -f option
+import thread # If this fails, we can't test this module
import threading
from test_support import TestFailed
import StringIO