[Python-checkins] cpython: Make test_wakeup_write_error more robust
antoine.pitrou
python-checkins at python.org
Sat Aug 17 21:44:06 CEST 2013
http://hg.python.org/cpython/rev/f2d955afad8a
changeset: 85240:f2d955afad8a
user: Antoine Pitrou <solipsis at pitrou.net>
date: Sat Aug 17 21:43:47 2013 +0200
summary:
Make test_wakeup_write_error more robust
(trying to fix a failure on the FreeBSD 9.0 buildbot)
files:
Lib/test/test_signal.py | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py
--- a/Lib/test/test_signal.py
+++ b/Lib/test/test_signal.py
@@ -313,6 +313,16 @@
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)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list