]> granicus.if.org Git - python/commitdiff
Added additional diagnostics to help with #12151.
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Tue, 28 Feb 2012 19:02:43 +0000 (19:02 +0000)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Tue, 28 Feb 2012 19:02:43 +0000 (19:02 +0000)
Lib/test/test_logging.py

index e71a0fee4ddfd381ab393fd8e65c99ac2c5a62f0..b239f587828e0e726dc9818da649ea911d101915 100644 (file)
@@ -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):