Skip to content

Commit b183b96

Browse files
Get rid of exception traceback printing in asyncio tests (GH-14343)
(cherry picked from commit 549f7d4) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
1 parent 8763d43 commit b183b96

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/test/test_asyncio/test_subprocess.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,8 @@ def test_communicate_ignore_broken_pipe(self):
248248
proc, large_data = self.prepare_broken_pipe_test()
249249

250250
# communicate() must ignore BrokenPipeError when feeding stdin
251-
with test_utils.disable_logger():
252-
self.loop.run_until_complete(proc.communicate(large_data))
251+
self.loop.set_exception_handler(lambda loop, msg: None)
252+
self.loop.run_until_complete(proc.communicate(large_data))
253253
self.loop.run_until_complete(proc.wait())
254254

255255
def test_pause_reading(self):

0 commit comments

Comments
 (0)