mirror of https://github.com/python/cpython.git
Issue #20564: Skip tests on lock+signals on OpenBSD
This commit is contained in:
parent
9141bff144
commit
7d02d50504
|
@ -74,6 +74,9 @@ def alarm_interrupt(self, sig, frame):
|
|||
|
||||
@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 @@ def test_lock_acquire_interruption(self):
|
|||
|
||||
@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.
|
||||
|
|
Loading…
Reference in New Issue