]> granicus.if.org Git - python/commitdiff
Issue #12429: Skip interrupted write tests on FreeBSD <= 7
authorVictor Stinner <victor.stinner@haypocalc.com>
Mon, 4 Jul 2011 09:44:46 +0000 (11:44 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Mon, 4 Jul 2011 09:44:46 +0000 (11:44 +0200)
On FreeBSD, the SIGALRM signal is sometimes received by the reader thread.

Lib/test/test_io.py

index d0608e3b857c15fa9a6835edb016b7e00783d07a..d9705e740574f6df3c7a6c781f233bc4a53ee731 100644 (file)
@@ -2557,6 +2557,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