Issue #13894: Skip test_threading.CRLockTests if _CRLock isn't available. Patch

by Matt Joiner.
parent 261896b5
...@@ -726,6 +726,7 @@ class LockTests(lock_tests.LockTests): ...@@ -726,6 +726,7 @@ class LockTests(lock_tests.LockTests):
class PyRLockTests(lock_tests.RLockTests): class PyRLockTests(lock_tests.RLockTests):
locktype = staticmethod(threading._PyRLock) locktype = staticmethod(threading._PyRLock)
@unittest.skipIf(threading._CRLock is None, 'RLock not implemented in C')
class CRLockTests(lock_tests.RLockTests): class CRLockTests(lock_tests.RLockTests):
locktype = staticmethod(threading._CRLock) locktype = staticmethod(threading._CRLock)
......
...@@ -453,6 +453,7 @@ Orjan Johansen ...@@ -453,6 +453,7 @@ Orjan Johansen
Fredrik Johansson Fredrik Johansson
Gregory K. Johnson Gregory K. Johnson
Simon Johnston Simon Johnston
Matt Joiner
Thomas Jollans Thomas Jollans
Nicolas Joly Nicolas Joly
Evan Jones Evan Jones
......
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