From: Victor Stinner Date: Sun, 22 May 2011 23:16:44 +0000 (+0200) Subject: Issue #12151: test_logging writes debug messages to stderr, not stdout X-Git-Tag: v3.3.0a1~2188 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=949c890e4895ce56ff61fe19228e003329dde5e5;p=thirdparty%2FPython%2Fcpython.git Issue #12151: test_logging writes debug messages to stderr, not stdout stdout are lost in buildbots --- diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index 496575ae21ca..3118065a76c6 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -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):