Commits

Anonymous committed 279b6d7 Merge

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

  • Participants
  • Parent commits 265d35e, 5cf181d

Comments (0)

Files changed (2)

File Lib/test/test_threading.py

 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)
 
 Fredrik Johansson
 Gregory K. Johnson
 Simon Johnston
+Matt Joiner
 Thomas Jollans
 Nicolas Joly
 Evan Jones