From: Andrew Svetlov Date: Mon, 24 Jun 2019 16:47:28 +0000 (+0300) Subject: Get rid of exception traceback printing in asyncio tests (GH-14343) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=549f7d45c8d61ab7b1d4a4e266b9d790ad6f7504;p=python Get rid of exception traceback printing in asyncio tests (GH-14343) --- diff --git a/Lib/test/test_asyncio/test_subprocess.py b/Lib/test/test_asyncio/test_subprocess.py index 7d72e6cde4..e9a9e50430 100644 --- a/Lib/test/test_asyncio/test_subprocess.py +++ b/Lib/test/test_asyncio/test_subprocess.py @@ -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):