mirror of https://github.com/python/cpython
Issue #13894: Skip test_threading.CRLockTests if _CRLock isn't available. Patch
by Matt Joiner.
This commit is contained in:
commit
9ab91c60b2
|
@ -738,6 +738,7 @@ class LockTests(lock_tests.LockTests):
|
|||
class PyRLockTests(lock_tests.RLockTests):
|
||||
locktype = staticmethod(threading._PyRLock)
|
||||
|
||||
@unittest.skipIf(threading._CRLock is None, 'RLock not implemented in C')
|
||||
class CRLockTests(lock_tests.RLockTests):
|
||||
locktype = staticmethod(threading._CRLock)
|
||||
|
||||
|
|
Loading…
Reference in New Issue