Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7d02d50

Browse files
committed
Issue #20564: Skip tests on lock+signals on OpenBSD
1 parent 9141bff commit 7d02d50

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Lib/test/test_threadsignals.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ def alarm_interrupt(self, sig, frame):
7474

7575
@unittest.skipIf(USING_PTHREAD_COND,
7676
'POSIX condition variables cannot be interrupted')
77+
# Issue #20564: sem_timedwait() cannot be interrupted on OpenBSD
78+
@unittest.skipIf(sys.platform.startswith('openbsd'),
79+
'lock cannot be interrupted on OpenBSD')
7780
def test_lock_acquire_interruption(self):
7881
# Mimic receiving a SIGINT (KeyboardInterrupt) with SIGALRM while stuck
7982
# in a deadlock.
@@ -97,6 +100,9 @@ def test_lock_acquire_interruption(self):
97100

98101
@unittest.skipIf(USING_PTHREAD_COND,
99102
'POSIX condition variables cannot be interrupted')
103+
# Issue #20564: sem_timedwait() cannot be interrupted on OpenBSD
104+
@unittest.skipIf(sys.platform.startswith('openbsd'),
105+
'lock cannot be interrupted on OpenBSD')
100106
def test_rlock_acquire_interruption(self):
101107
# Mimic receiving a SIGINT (KeyboardInterrupt) with SIGALRM while stuck
102108
# in a deadlock.

0 commit comments

Comments
 (0)