Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d55b54d commit ddc8c8dCopy full SHA for ddc8c8d
1 file changed
Lib/test/test_asyncio/test_subprocess.py
@@ -130,9 +130,9 @@ def prepare_broken_pipe_test(self):
130
def test_stdin_broken_pipe(self):
131
proc, large_data = self.prepare_broken_pipe_test()
132
133
- # drain() must raise BrokenPipeError
+ # drain() must raise BrokenPipeError or ConnectionResetError
134
proc.stdin.write(large_data)
135
- self.assertRaises(BrokenPipeError,
+ self.assertRaises((BrokenPipeError, ConnectionResetError),
136
self.loop.run_until_complete, proc.stdin.drain())
137
self.loop.run_until_complete(proc.wait())
138
0 commit comments