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

Skip to content

Commit f25ae48

Browse files
author
Victor Stinner
committed
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).
1 parent 62d5118 commit f25ae48

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Lib/test/test_threadsignals.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ def spawnSignallingThread(self):
7070
def alarm_interrupt(self, sig, frame):
7171
raise KeyboardInterrupt
7272

73+
# Issue #11223: Locks are implemented using a mutex and a condition
74+
# variable of the pthread library on FreeBSD6. POSIX condition variables
75+
# cannot be interrupted by signals (see pthread_cond_wait manual page).
76+
@unittest.skipIf(sys.platform == 'freebsd6',
77+
'POSIX condition variables cannot be interrupted')
7378
def test_lock_acquire_interruption(self):
7479
# Mimic receiving a SIGINT (KeyboardInterrupt) with SIGALRM while stuck
7580
# in a deadlock.

0 commit comments

Comments
 (0)