summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-07-04 09:48:17 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-07-04 09:48:17 (GMT)
commitcd1aa0d5eaab7edce2b42705a05532c41c8d0a0a (patch)
tree84cbb7e38b9de1df833b7b739e0fb6974fe4996b /Lib
parent4143535d865b103ebe6cbce51287a63f9538afd3 (diff)
downloadcpython-cd1aa0d5eaab7edce2b42705a05532c41c8d0a0a.zip
cpython-cd1aa0d5eaab7edce2b42705a05532c41c8d0a0a.tar.gz
cpython-cd1aa0d5eaab7edce2b42705a05532c41c8d0a0a.tar.bz2
Issue #12429: Skip interrupted write tests on FreeBSD <= 7
On FreeBSD, the SIGALRM signal is sometimes received by the reader thread.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_io.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py
index 707b7cb..cfd4583 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