Skip to content

Commit 549f7d4

Browse files
authored
Get rid of exception traceback printing in asyncio tests (pythonGH-14343)
1 parent 60419a7 commit 549f7d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)