[Python-checkins] python/dist/src/Lib/test test_imp.py, 1.4, 1.4.10.1

bcannon at users.sourceforge.net bcannon at users.sourceforge.net
Sat Dec 18 22:09:06 CET 2004


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27679/Lib/test

Modified Files:
      Tag: release23-maint
	test_imp.py 
Log Message:
Backport of fix for bug #1083645; skip test_imp if threading is not available.


Index: test_imp.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_imp.py,v
retrieving revision 1.4
retrieving revision 1.4.10.1
diff -u -d -r1.4 -r1.4.10.1
--- test_imp.py	26 Apr 2003 14:31:24 -0000	1.4
+++ test_imp.py	18 Dec 2004 21:09:04 -0000	1.4.10.1
@@ -1,5 +1,9 @@
 import imp
-from test.test_support import TestFailed
+from test.test_support import TestFailed, TestSkipped
+try:
+    import thread
+except ImportError:
+    raise TestSkipped("test only valid when thread support is available")
 
 def verify_lock_state(expected):
     if imp.lock_held() != expected:



More information about the Python-checkins mailing list