[Python-checkins] cpython: Issue #21645: test_asyncio, log debug trace into sys.__stderr__, not in

victor.stinner python-checkins at python.org
Mon Jul 14 22:04:33 CEST 2014


http://hg.python.org/cpython/rev/dbf991650441
changeset:   91680:dbf991650441
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Mon Jul 14 22:04:18 2014 +0200
summary:
  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.

files:
  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
--- a/Lib/test/test_asyncio/test_streams.py
+++ b/Lib/test/test_asyncio/test_streams.py
@@ -615,7 +615,7 @@
         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 ---

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list