diff --git a/tests/test_cli.py b/tests/test_cli.py index 26e4b688..308d6181 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -499,7 +499,7 @@ def test_run_default_format_output_in_tty(self): # Create a pseudo-TTY and redirect stdout to it master, slave = pty.openpty() - sys.stdout = sys.stderr = os.fdopen(slave, 'w') + sys.stdout = os.fdopen(slave, 'w') with self.assertRaises(SystemExit) as ctx: cli.run((path, )) @@ -514,7 +514,6 @@ def test_run_default_format_output_in_tty(self): out = output.read().replace('\r\n', '\n') sys.stdout.close() - sys.stderr.close() output.close() self.assertEqual(out, (