]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add "import thread" at the top of the module; this prevents us from
authorGuido van Rossum <guido@python.org>
Sat, 14 Apr 2001 14:35:43 +0000 (14:35 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 14 Apr 2001 14:35:43 +0000 (14:35 +0000)
failing later when Python is compiled without threading but a failing
'threading' module can be imported due to an earlier (caught) attempt.

Lib/test/test_asynchat.py
Lib/test/test_threadedtempfile.py

index c887cec6ae3821a812128d9d608cfcf82a853170..ccaf9078148985d5a5b0c0b5d6b7e043d6705d47 100644 (file)
@@ -1,5 +1,6 @@
 # test asynchat -- requires threading
 
+import thread # If this fails, we can't test this module
 import asyncore, asynchat, socket, threading, time
 
 HOST = "127.0.0.1"
index 5b06c18ac8bb7332b9b66fbad93bd6fc5c8d974b..9aa93763e374565fe1699ef0a26bd5e176864b5a 100644 (file)
@@ -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