Kaydet (Commit) 94eaee6d authored tarafından Brett Cannon's avatar Brett Cannon

Skip test_imp if threading is not available.

Closes bug #1083645.  Thanks Detlef Vollmann.
üst 5399c6d3
import imp 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): def verify_lock_state(expected):
if imp.lock_held() != expected: if imp.lock_held() != expected:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment