[issue13894] threading._CRLock should not be tested if _thread.RLock isn't implemented

Matt Joiner report at bugs.python.org
Sat Jan 28 09:44:02 CET 2012


New submission from Matt Joiner <anacrolix at gmail.com>:

_threading.RLock is optional, and threading._CRLock is set to None if it isn't available. If this happens, the test_threading unittests crash.

Some implementations don't provide _thread.RLock.

Patch attached.

----------
components: Library (Lib)
files: skip-crlock-tests-if-not-implemented.patch
keywords: patch
messages: 152151
nosy: anacrolix
priority: normal
severity: normal
status: open
title: threading._CRLock should not be tested if _thread.RLock isn't implemented
type: behavior
versions: Python 3.3
Added file: http://bugs.python.org/file24345/skip-crlock-tests-if-not-implemented.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13894>
_______________________________________


More information about the Python-bugs-list mailing list