[Python-checkins] cpython: Issue #20564: Skip tests on lock+signals on OpenBSD

victor.stinner python-checkins at python.org
Tue Feb 18 09:20:31 CET 2014


http://hg.python.org/cpython/rev/a3d54bb04cbb
changeset:   89245:a3d54bb04cbb
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Tue Feb 18 09:19:48 2014 +0100
summary:
  Issue #20564: Skip tests on lock+signals on OpenBSD

files:
  Lib/test/test_threadsignals.py |  6 ++++++
  1 files changed, 6 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
@@ -74,6 +74,9 @@
 
     @unittest.skipIf(USING_PTHREAD_COND,
                      'POSIX condition variables cannot be interrupted')
+    # Issue #20564: sem_timedwait() cannot be interrupted on OpenBSD
+    @unittest.skipIf(sys.platform.startswith('openbsd'),
+                     'lock cannot be interrupted on OpenBSD')
     def test_lock_acquire_interruption(self):
         # Mimic receiving a SIGINT (KeyboardInterrupt) with SIGALRM while stuck
         # in a deadlock.
@@ -97,6 +100,9 @@
 
     @unittest.skipIf(USING_PTHREAD_COND,
                      'POSIX condition variables cannot be interrupted')
+    # Issue #20564: sem_timedwait() cannot be interrupted on OpenBSD
+    @unittest.skipIf(sys.platform.startswith('openbsd'),
+                     'lock cannot be interrupted on OpenBSD')
     def test_rlock_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