[Python-checkins] python/dist/src/Lib/test test_imp.py,1.4,1.5
bcannon at users.sourceforge.net
bcannon at users.sourceforge.net
Sat Dec 18 22:06:58 CET 2004
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25578/Lib/test
Modified Files:
test_imp.py
Log Message:
Skip test_imp if threading is not available.
Closes bug #1083645. Thanks Detlef Vollmann.
Index: test_imp.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_imp.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- test_imp.py 26 Apr 2003 14:31:24 -0000 1.4
+++ test_imp.py 18 Dec 2004 21:06:55 -0000 1.5
@@ -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