]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #12151: test_logging writes debug messages to stderr, not stdout
authorVictor Stinner <victor.stinner@haypocalc.com>
Sun, 22 May 2011 23:16:44 +0000 (01:16 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Sun, 22 May 2011 23:16:44 +0000 (01:16 +0200)
stdout are lost in buildbots

Lib/test/test_logging.py

index 496575ae21ca6802a900b568da1d1afd147686bb..3118065a76c602f4e776c5214f44d6237384d065 100644 (file)
@@ -3594,8 +3594,8 @@ class TimedRotatingFileHandlerTest(BaseFileTest):
             #print additional diagnostics
             dn, fn = os.path.split(self.fn)
             files = [f for f in os.listdir(dn) if f.startswith(fn)]
-            print('Test time: %s' % now.strftime("%Y-%m-%d %H-%M-%S"))
-            print('The only matching files are: %s' % files)
+            print('Test time: %s' % now.strftime("%Y-%m-%d %H-%M-%S"), file=sys.stderr)
+            print('The only matching files are: %s' % files, file=sys.stderr)
         self.assertTrue(found, msg=msg)
 
     def test_invalid(self):