diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-07-14 20:04:18 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-07-14 20:04:18 (GMT) |
commit | ed589f5354d2f757c43505b9e1b1f3dabeb15428 (patch) | |
tree | cc819df8ccbcafec74bc75fbc442de78e0080a7e | |
parent | 24f2a5093f5a361e071b663ea153d82b05ae42b5 (diff) | |
download | cpython-ed589f5354d2f757c43505b9e1b1f3dabeb15428.zip cpython-ed589f5354d2f757c43505b9e1b1f3dabeb15428.tar.gz cpython-ed589f5354d2f757c43505b9e1b1f3dabeb15428.tar.bz2 |
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.
-rw-r--r-- | Lib/test/test_asyncio/test_streams.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_asyncio/test_streams.py b/Lib/test/test_asyncio/test_streams.py index 0929495..ef4fe8a 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 --- |