]> granicus.if.org Git - python/commitdiff
Fixed problem with diagnostic output.
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Sat, 3 Mar 2012 16:20:37 +0000 (16:20 +0000)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Sat, 3 Mar 2012 16:20:37 +0000 (16:20 +0000)
Lib/test/test_logging.py

index b239f587828e0e726dc9818da649ea911d101915..92e69941325a0ce2cf37b9fb03ec617fd2bd1b5d 100644 (file)
@@ -3682,7 +3682,8 @@ class TimedRotatingFileHandlerTest(BaseFileTest):
             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:
+                path = os.path.join(dn, f)
+                with open(path, 'r') as tf:
                     print(tf.read())
         self.assertTrue(found, msg=msg)