Get rid of exception traceback printing in asyncio tests (GH-14343)

This commit is contained in:
Andrew Svetlov 2019-06-24 19:47:28 +03:00 committed by GitHub
parent 60419a7e96
commit 549f7d45c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -248,8 +248,8 @@ class SubprocessMixin:
proc, large_data = self.prepare_broken_pipe_test()
# communicate() must ignore BrokenPipeError when feeding stdin
with test_utils.disable_logger():
self.loop.run_until_complete(proc.communicate(large_data))
self.loop.set_exception_handler(lambda loop, msg: None)
self.loop.run_until_complete(proc.communicate(large_data))
self.loop.run_until_complete(proc.wait())
def test_pause_reading(self):