]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #13894: Skip test_threading.CRLockTests if _CRLock isn't available. Patch
authorCharles-François Natali <neologix@free.fr>
Sat, 28 Jan 2012 10:36:04 +0000 (11:36 +0100)
committerCharles-François Natali <neologix@free.fr>
Sat, 28 Jan 2012 10:36:04 +0000 (11:36 +0100)
by Matt Joiner.

Lib/test/test_threading.py
Misc/ACKS

index ef15d10dbdc9138a000a5a3407e300039dce10be..924d9d3ce6e51c9b69d229a64e24ec7f11a38695 100644 (file)
@@ -726,6 +726,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)
 
index c888a8cbea40dc33edcb782daa391b4c65e3bd66..8117d80b13703d1b37b4749e2365434ecd8a0e85 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -453,6 +453,7 @@ Orjan Johansen
 Fredrik Johansson
 Gregory K. Johnson
 Simon Johnston
+Matt Joiner
 Thomas Jollans
 Nicolas Joly
 Evan Jones