From bcfe818b1b3d55d29fe9f0253824f0a33e66141c Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Mon, 24 Jun 2019 17:44:23 +0300 Subject: [PATCH] Get rid of exception traceback printing in asyncio tests --- Lib/test/test_asyncio/test_subprocess.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_asyncio/test_subprocess.py b/Lib/test/test_asyncio/test_subprocess.py index 7d72e6cde4e7a84..e9a9e50430c3f5a 100644 --- a/Lib/test/test_asyncio/test_subprocess.py +++ b/Lib/test/test_asyncio/test_subprocess.py @@ -248,8 +248,8 @@ def test_communicate_ignore_broken_pipe(self): 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):