mirror of
https://github.com/python/cpython.git
synced 2025-10-01 04:42:10 +00:00
Issue #12429: Skip interrupted write tests on FreeBSD <= 7
On FreeBSD, the SIGALRM signal is sometimes received by the reader thread.
This commit is contained in:
parent
c8763b9d96
commit
4479841b83
1 changed files with 2 additions and 0 deletions
|
@ -2651,6 +2651,8 @@ class SignalsTest(unittest.TestCase):
|
||||||
1/0
|
1/0
|
||||||
|
|
||||||
@unittest.skipUnless(threading, 'Threading required for this test.')
|
@unittest.skipUnless(threading, 'Threading required for this test.')
|
||||||
|
@unittest.skipIf(sys.platform in ('freebsd5', 'freebsd6', 'freebsd7'),
|
||||||
|
'issue #12429: skip test on FreeBSD <= 7')
|
||||||
def check_interrupted_write(self, item, bytes, **fdopen_kwargs):
|
def check_interrupted_write(self, item, bytes, **fdopen_kwargs):
|
||||||
"""Check that a partial write, when it gets interrupted, properly
|
"""Check that a partial write, when it gets interrupted, properly
|
||||||
invokes the signal handler, and bubbles up the exception raised
|
invokes the signal handler, and bubbles up the exception raised
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue