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

Skip to content

Commit cd1aa0d

Browse files
author
Victor Stinner
committed
Issue #12429: Skip interrupted write tests on FreeBSD <= 7
On FreeBSD, the SIGALRM signal is sometimes received by the reader thread.
1 parent 4143535 commit cd1aa0d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/test/test_io.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2651,6 +2651,8 @@ def alarm_interrupt(self, sig, frame):
26512651
1/0
26522652

26532653
@unittest.skipUnless(threading, 'Threading required for this test.')
2654+
@unittest.skipIf(sys.platform in ('freebsd5', 'freebsd6', 'freebsd7'),
2655+
'issue #12429: skip test on FreeBSD <= 7')
26542656
def check_interrupted_write(self, item, bytes, **fdopen_kwargs):
26552657
"""Check that a partial write, when it gets interrupted, properly
26562658
invokes the signal handler, and bubbles up the exception raised

0 commit comments

Comments
 (0)