summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-08-17 19:43:47 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2013-08-17 19:43:47 (GMT)
commit8f0bddad308f8c52bf16e3f90a864b2a168e3291 (patch)
treebfc924b424c4b45889d971ddfd656cea02741549 /Lib
parent6f6ec37838b424c5d5ccef9a640ad02b7d1cb92f (diff)
downloadcpython-8f0bddad308f8c52bf16e3f90a864b2a168e3291.zip
cpython-8f0bddad308f8c52bf16e3f90a864b2a168e3291.tar.gz
cpython-8f0bddad308f8c52bf16e3f90a864b2a168e3291.tar.bz2
Make test_wakeup_write_error more robust
(trying to fix a failure on the FreeBSD 9.0 buildbot)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_signal.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py
index 0564740..3530d8a 100644
--- a/Lib/test/test_signal.py
+++ b/Lib/test/test_signal.py
@@ -313,6 +313,16 @@ class WakeupSignalTests(unittest.TestCase):
else:
raise AssertionError("ZeroDivisionError not raised")
"""
+ r, w = os.pipe()
+ try:
+ os.write(r, b'x')
+ except OSError:
+ pass
+ else:
+ self.skipTest("OS doesn't report write() error on the read end of a pipe")
+ finally:
+ os.close(r)
+ os.close(w)
assert_python_ok('-c', code)