From: Victor Stinner Date: Mon, 14 Jul 2014 20:04:18 +0000 (+0200) Subject: Issue #21645: test_asyncio, log debug trace into sys.__stderr__, not in X-Git-Tag: v3.5.0a1~1281 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ed589f5354d2f757c43505b9e1b1f3dabeb15428;p=thirdparty%2FPython%2Fcpython.git Issue #21645: test_asyncio, log debug trace into sys.__stderr__, not in sys.stderr, to get output even if tests are run with the -j command line option. --- diff --git a/Lib/test/test_asyncio/test_streams.py b/Lib/test/test_asyncio/test_streams.py index 0929495ea7f7..ef4fe8aacaaa 100644 --- a/Lib/test/test_asyncio/test_streams.py +++ b/Lib/test/test_asyncio/test_streams.py @@ -615,7 +615,7 @@ os.close(fd) logger = logging.getLogger('asyncio') log_level = logger.level try: - log_handler = logging.StreamHandler(sys.stderr) + log_handler = logging.StreamHandler(sys.__stderr__) logger.addHandler(log_handler) logger.setLevel(logging.DEBUG) # FIXME: Debug code for issue #21645 ---