mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Issue #20564: Skip tests on lock+signals on OpenBSD
This commit is contained in:
parent
9141bff144
commit
7d02d50504
1 changed files with 6 additions and 0 deletions
|
@ -74,6 +74,9 @@ class ThreadSignals(unittest.TestCase):
|
|||
|
||||
@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 @@ class ThreadSignals(unittest.TestCase):
|
|||
|
||||
@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…
Add table
Add a link
Reference in a new issue