]> granicus.if.org Git - python/commitdiff
Issue #21645: test_asyncio, log debug trace into sys.__stderr__, not in
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 14 Jul 2014 20:04:18 +0000 (22:04 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 14 Jul 2014 20:04:18 +0000 (22:04 +0200)
sys.stderr, to get output even if tests are run with the -j command line
option.

Lib/test/test_asyncio/test_streams.py

index 0929495ea7f7a779d9b217fc312c61565b0295b8..ef4fe8aacaaace09cdf53203ba484c8e239888a2 100644 (file)
@@ -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 ---