[Python-checkins] cpython: Issue #12151: test_logging writes debug messages to stderr, not stdout

victor.stinner python-checkins at python.org
Mon May 23 01:17:21 CEST 2011


http://hg.python.org/cpython/rev/54ffc01b6cc2
changeset:   70281:54ffc01b6cc2
user:        Victor Stinner <victor.stinner at haypocalc.com>
date:        Mon May 23 01:16:44 2011 +0200
summary:
  Issue #12151: test_logging writes debug messages to stderr, not stdout

stdout are lost in buildbots

files:
  Lib/test/test_logging.py |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -3594,8 +3594,8 @@
             #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):

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


More information about the Python-checkins mailing list