From: Vinay Sajip Date: Tue, 28 Feb 2012 19:02:43 +0000 (+0000) Subject: Added additional diagnostics to help with #12151. X-Git-Tag: v3.3.0a1~35 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=19b1d50732aace91208bb3a7ab1fcbace9883bae;p=python Added additional diagnostics to help with #12151. --- diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index e71a0fee4d..b239f58782 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):