[Python-checkins] cpython (3.2): Issue #11223: skip test_lock_acquire_interruption() on FreeBSD6
victor.stinner
python-checkins at python.org
Thu Jun 23 11:57:53 CEST 2011
http://hg.python.org/cpython/rev/07655b3dee4f
changeset: 70933:07655b3dee4f
branch: 3.2
parent: 70929:52c5f80122dd
user: Victor Stinner <victor.stinner at haypocalc.com>
date: Thu Jun 23 11:57:56 2011 +0200
summary:
Issue #11223: skip test_lock_acquire_interruption() on FreeBSD6
Locks are implemented using a mutex and a condition variable of the pthread
library on FreeBSD6. POSIX condition variables cannot be interrupted by signals
(see pthread_cond_wait manual page).
files:
Lib/test/test_threadsignals.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_threadsignals.py b/Lib/test/test_threadsignals.py
--- a/Lib/test/test_threadsignals.py
+++ b/Lib/test/test_threadsignals.py
@@ -70,6 +70,11 @@
def alarm_interrupt(self, sig, frame):
raise KeyboardInterrupt
+ # Issue #11223: Locks are implemented using a mutex and a condition
+ # variable of the pthread library on FreeBSD6. POSIX condition variables
+ # cannot be interrupted by signals (see pthread_cond_wait manual page).
+ @unittest.skipIf(sys.platform == 'freebsd6',
+ 'POSIX condition variables cannot be interrupted')
def test_lock_acquire_interruption(self):
# Mimic receiving a SIGINT (KeyboardInterrupt) with SIGALRM while stuck
# in a deadlock.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list