Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9ab91c6

Browse files
author
Charles-François Natali
committed
Issue #13894: Skip test_threading.CRLockTests if _CRLock isn't available. Patch
by Matt Joiner.
2 parents 963816d + 6b671b2 commit 9ab91c6

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/test/test_threading.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,7 @@ class LockTests(lock_tests.LockTests):
738738
class PyRLockTests(lock_tests.RLockTests):
739739
locktype = staticmethod(threading._PyRLock)
740740

741+
@unittest.skipIf(threading._CRLock is None, 'RLock not implemented in C')
741742
class CRLockTests(lock_tests.RLockTests):
742743
locktype = staticmethod(threading._CRLock)
743744

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,7 @@ Orjan Johansen
492492
Fredrik Johansson
493493
Gregory K. Johnson
494494
Simon Johnston
495+
Matt Joiner
495496
Thomas Jollans
496497
Nicolas Joly
497498
Evan Jones

0 commit comments

Comments
 (0)