summaryrefslogtreecommitdiff
path: root/Lib/test/test_logging.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-05-23 01:16:44 +0200
committerVictor Stinner <victor.stinner@haypocalc.com>2011-05-23 01:16:44 +0200
commit949c890e4895ce56ff61fe19228e003329dde5e5 (patch)
tree9082751a9899dfb4e255aea4c6a6ebf9117846d6 /Lib/test/test_logging.py
parente5f9cbdaae323e801862e8780826386132b58326 (diff)
downloadcpython-git-949c890e4895ce56ff61fe19228e003329dde5e5.tar.gz
Issue #12151: test_logging writes debug messages to stderr, not stdout
stdout are lost in buildbots
Diffstat (limited to 'Lib/test/test_logging.py')
-rw-r--r--Lib/test/test_logging.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index 496575ae21..3118065a76 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):