diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2019-06-24 16:47:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-24 16:47:28 (GMT) |
commit | 549f7d45c8d61ab7b1d4a4e266b9d790ad6f7504 (patch) | |
tree | ec1ae531aee6278b9807bc13be9b94cf785fdab3 /Lib/test/test_asyncio | |
parent | 60419a7e96577cf783b3b45bf3984f9fb0d7ddff (diff) | |
download | cpython-549f7d45c8d61ab7b1d4a4e266b9d790ad6f7504.zip cpython-549f7d45c8d61ab7b1d4a4e266b9d790ad6f7504.tar.gz cpython-549f7d45c8d61ab7b1d4a4e266b9d790ad6f7504.tar.bz2 |
Get rid of exception traceback printing in asyncio tests (GH-14343)
Diffstat (limited to 'Lib/test/test_asyncio')
-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 7d72e6c..e9a9e50 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): |