[Python-checkins] cpython (3.2): Issue #13894: Skip test_threading.CRLockTests if _CRLock isn't available. Patch

charles-francois.natali python-checkins at python.org
Sat Jan 28 11:38:08 CET 2012


http://hg.python.org/cpython/rev/5cf181df7bea
changeset: 74665:5cf181df7bea
branch: 3.2
parent: 74662:5b8800004955
user: Charles-François Natali <neologix at free.fr>
date: Sat Jan 28 11:36:04 2012 +0100
summary:
 Issue #13894: Skip test_threading.CRLockTests if _CRLock isn't available. Patch
by Matt Joiner.
files:
 Lib/test/test_threading.py | 1 +
 Misc/ACKS | 1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py
--- a/Lib/test/test_threading.py
+++ b/Lib/test/test_threading.py
@@ -726,6 +726,7 @@
 class PyRLockTests(lock_tests.RLockTests):
 locktype = staticmethod(threading._PyRLock)
 
+ at unittest.skipIf(threading._CRLock is None, 'RLock not implemented in C')
 class CRLockTests(lock_tests.RLockTests):
 locktype = staticmethod(threading._CRLock)
 
diff --git a/Misc/ACKS b/Misc/ACKS
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -453,6 +453,7 @@
 Fredrik Johansson
 Gregory K. Johnson
 Simon Johnston
+Matt Joiner
 Thomas Jollans
 Nicolas Joly
 Evan Jones
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /