From: Victor Stinner Date: Mon, 4 Jul 2011 09:48:17 +0000 (+0200) Subject: Issue #12429: Skip interrupted write tests on FreeBSD <= 7 X-Git-Tag: v3.2.2rc1~147 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cd1aa0d5eaab7edce2b42705a05532c41c8d0a0a;p=python Issue #12429: Skip interrupted write tests on FreeBSD <= 7 On FreeBSD, the SIGALRM signal is sometimes received by the reader thread. --- diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py index 707b7cb088..cfd4583cb2 100644 --- a/Lib/test/test_io.py +++ b/Lib/test/test_io.py @@ -2651,6 +2651,8 @@ class SignalsTest(unittest.TestCase): 1/0 @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): """Check that a partial write, when it gets interrupted, properly invokes the signal handler, and bubbles up the exception raised