Commit ddc8c8db authored by Victor Stinner's avatar Victor Stinner

asyncio: Fix test_stdin_broken_pipe(), drain() can also raise

ConnectionResetError
parent d55b54d5
......@@ -130,9 +130,9 @@ class SubprocessMixin:
def test_stdin_broken_pipe(self):
proc, large_data = self.prepare_broken_pipe_test()
# drain() must raise BrokenPipeError
# drain() must raise BrokenPipeError or ConnectionResetError
proc.stdin.write(large_data)
self.assertRaises(BrokenPipeError,
self.assertRaises((BrokenPipeError, ConnectionResetError),
self.loop.run_until_complete, proc.stdin.drain())
self.loop.run_until_complete(proc.wait())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment