Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_threading.py @ 74665:5cf181df7bea 3.2
Issue #13894: Skip test_threading.CRLockTests if _CRLock isn't available. Patch
by Matt Joiner.
| author | Charles-François Natali <neologix@free.fr> |
|---|---|
| date | Sat, 28 Jan 2012 11:36:04 +0100 |
| parents | 0ed5e6ff10f8 |
| children | 7b24dd587a7b 279b6d778663 |
line wrap: on
line diff
--- a/Lib/test/test_threading.py Fri Jan 27 21:16:01 2012 +0000 +++ b/Lib/test/test_threading.py Sat Jan 28 11:36:04 2012 +0100 @@ -726,6 +726,7 @@ 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)
