diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-07-17 14:01:14 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-07-17 14:01:14 +0200 |
commit | aaff2da893c28e440d40aa162423ab8d7659a539 (patch) | |
tree | e77dedcecaa751046f98d340052c514680bafb81 /Lib/test/test_asyncio/test_subprocess.py | |
parent | 9f42739b005fdaf3b91651de28d3468f952c20b7 (diff) | |
download | cpython-aaff2da893c28e440d40aa162423ab8d7659a539.tar.gz |
asyncio: Fix test_stdin_broken_pipe(), drain() can also raise
ConnectionResetError
Diffstat (limited to 'Lib/test/test_asyncio/test_subprocess.py')
-rw-r--r-- | Lib/test/test_asyncio/test_subprocess.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_asyncio/test_subprocess.py b/Lib/test/test_asyncio/test_subprocess.py index e41cabefe8..d050458e7f 100644 --- a/Lib/test/test_asyncio/test_subprocess.py +++ b/Lib/test/test_asyncio/test_subprocess.py @@ -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()) |