[Python-checkins] CVS: python/dist/src/Lib/test test_asynchat.py,1.2,1.3 test_threadedtempfile.py,1.2,1.3

Guido van Rossum gvanrossum@users.sourceforge.net
Sat, 14 Apr 2001 07:35:46 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv17379

Modified Files:
	test_asynchat.py test_threadedtempfile.py 
Log Message:
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.



Index: test_asynchat.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_asynchat.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** test_asynchat.py	2001/04/06 16:43:49	1.2
--- test_asynchat.py	2001/04/14 14:35:43	1.3
***************
*** 1,4 ****
--- 1,5 ----
  # test asynchat -- requires threading
  
+ import thread # If this fails, we can't test this module
  import asyncore, asynchat, socket, threading, time
  

Index: test_threadedtempfile.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_threadedtempfile.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** test_threadedtempfile.py	2001/01/13 03:45:59	1.2
--- test_threadedtempfile.py	2001/04/14 14:35:43	1.3
***************
*** 21,24 ****
--- 21,25 ----
  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