Skip test_imp if threading is not available.
Closes bug #1083645. Thanks Detlef Vollmann.
This commit is contained in:
parent
5399c6d3d4
commit
94eaee6d49
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue