changeset: 103733:5ae3782c4e05 branch: 3.5 parent: 103730:aa88456f1749 user: Berker Peksag date: Tue Sep 13 07:55:54 2016 +0300 files: Lib/test/test_tools/test_fixcid.py description: Issue #27952: Capture stderr in run_script() diff -r aa88456f1749 -r 5ae3782c4e05 Lib/test/test_tools/test_fixcid.py --- a/Lib/test/test_tools/test_fixcid.py Tue Sep 13 07:39:00 2016 +0300 +++ b/Lib/test/test_tools/test_fixcid.py Tue Sep 13 07:55:54 2016 +0300 @@ -83,7 +83,8 @@ script = os.path.join(scriptsdir, "fixcid.py") with support.swap_attr(sys, "argv", argv), \ support.swap_attr(sys, "stdin", StringIO(input)), \ - support.captured_stdout() as output: + support.captured_stdout() as output, \ + support.captured_stderr(): try: runpy.run_path(script, run_name="__main__") except SystemExit as exit: