diff options
| author | Victor Stinner <victor.stinner@gmail.com> | 2014-07-30 15:52:28 +0200 |
|---|---|---|
| committer | Victor Stinner <victor.stinner@gmail.com> | 2014-07-30 15:52:28 +0200 |
| commit | f0528c3da86c2df819211bc3ca0829fcdf079a39 (patch) | |
| tree | efaf8f1e9bc0b7d411acb8b4fc9db0859001d9b4 /tests/test_subprocess.py | |
| parent | 6385aa6a132ee60663178cecaef549909eb42db7 (diff) | |
| download | trollius-f0528c3da86c2df819211bc3ca0829fcdf079a39.tar.gz | |
Don't log expected errors in unit tests
Diffstat (limited to 'tests/test_subprocess.py')
| -rw-r--r-- | tests/test_subprocess.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/test_subprocess.py b/tests/test_subprocess.py index b5b1012..0e9e1ce 100644 --- a/tests/test_subprocess.py +++ b/tests/test_subprocess.py @@ -148,15 +148,17 @@ class SubprocessMixin: coro = write_stdin(proc, large_data) # drain() must raise BrokenPipeError or ConnectionResetError - self.assertRaises((BrokenPipeError, ConnectionResetError), - self.loop.run_until_complete, coro) + with test_utils.disable_logger(): + self.assertRaises((BrokenPipeError, ConnectionResetError), + self.loop.run_until_complete, coro) self.loop.run_until_complete(proc.wait()) def test_communicate_ignore_broken_pipe(self): proc, large_data = self.prepare_broken_pipe_test() # communicate() must ignore BrokenPipeError when feeding stdin - self.loop.run_until_complete(proc.communicate(large_data)) + with test_utils.disable_logger(): + self.loop.run_until_complete(proc.communicate(large_data)) self.loop.run_until_complete(proc.wait()) |
