diff options
author | Brett Cannon <bcannon@gmail.com> | 2004-12-18 21:06:55 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2004-12-18 21:06:55 (GMT) |
commit | 94eaee6d49a12b6f332747b53780146027072a57 (patch) | |
tree | 215714a7d6dded9c715237c8a8b98b5d2b438a6e /Lib/test/test_imp.py | |
parent | 5399c6d3d4cf9496b46ce9f37975d6c8107a743d (diff) | |
download | cpython-94eaee6d49a12b6f332747b53780146027072a57.zip cpython-94eaee6d49a12b6f332747b53780146027072a57.tar.gz cpython-94eaee6d49a12b6f332747b53780146027072a57.tar.bz2 |
Skip test_imp if threading is not available.
Closes bug #1083645. Thanks Detlef Vollmann.
Diffstat (limited to 'Lib/test/test_imp.py')
-rw-r--r-- | Lib/test/test_imp.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/test/test_imp.py b/Lib/test/test_imp.py index 9b7e3b7..893ba24 100644 --- a/Lib/test/test_imp.py +++ b/Lib/test/test_imp.py @@ -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: |