[Python-checkins] cpython (3.2): Issue #12429: Skip interrupted write tests on FreeBSD <= 7

georg.brandl python-checkins at python.org
Sat Jul 9 10:58:09 CEST 2011


http://hg.python.org/cpython/rev/ad16e4a0ef80
changeset:   71274:ad16e4a0ef80
branch:      3.2
user:        Victor Stinner <victor.stinner at haypocalc.com>
date:        Mon Jul 04 11:48:17 2011 +0200
summary:
  Issue #12429: Skip interrupted write tests on FreeBSD <= 7

On FreeBSD, the SIGALRM signal is sometimes received by the reader thread.

files:
  Lib/test/test_io.py |  2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)


diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py
--- a/Lib/test/test_io.py
+++ b/Lib/test/test_io.py
@@ -2651,6 +2651,8 @@
         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

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list