diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2012-02-28 19:02:43 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2012-02-28 19:02:43 (GMT) |
commit | 19b1d50732aace91208bb3a7ab1fcbace9883bae (patch) | |
tree | 2b22765e7dc3a30ecba3c6a4f79f23fe863b2af7 /Lib/test/test_logging.py | |
parent | ff4b7bfaef084e90d9d5996607b2df90336f8a8c (diff) | |
download | cpython-19b1d50732aace91208bb3a7ab1fcbace9883bae.zip cpython-19b1d50732aace91208bb3a7ab1fcbace9883bae.tar.gz cpython-19b1d50732aace91208bb3a7ab1fcbace9883bae.tar.bz2 |
Added additional diagnostics to help with #12151.
Diffstat (limited to 'Lib/test/test_logging.py')
-rw-r--r-- | Lib/test/test_logging.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index e71a0fe..b239f58 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -3680,6 +3680,10 @@ class TimedRotatingFileHandlerTest(BaseFileTest): files = [f for f in os.listdir(dn) if f.startswith(fn)] 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) + for f in files: + print('Contents of %s:' % f) + with open(f, 'r') as tf: + print(tf.read()) self.assertTrue(found, msg=msg) def test_invalid(self): |