diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-06-23 09:57:56 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-06-23 09:57:56 (GMT) |
commit | f25ae48dfd646d6e47969eb0e20fc603c38e0d67 (patch) | |
tree | d0110ebcf4b955d18c3eb6708081927daace2287 | |
parent | 62d511809d3ccde1b8555cf27f12f31f74c10da6 (diff) | |
download | cpython-f25ae48dfd646d6e47969eb0e20fc603c38e0d67.zip cpython-f25ae48dfd646d6e47969eb0e20fc603c38e0d67.tar.gz cpython-f25ae48dfd646d6e47969eb0e20fc603c38e0d67.tar.bz2 |
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).
-rw-r--r-- | 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 index 46e405a..9162c86 100644 --- a/Lib/test/test_threadsignals.py +++ b/Lib/test/test_threadsignals.py @@ -70,6 +70,11 @@ class ThreadSignals(unittest.TestCase): 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. |