mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
Make test_wakeup_write_error more robust
(trying to fix a failure on the FreeBSD 9.0 buildbot)
This commit is contained in:
parent
6f6ec37838
commit
8f0bddad30
1 changed files with 10 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue