diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2012-03-03 16:20:37 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2012-03-03 16:20:37 (GMT) |
commit | d263d185534a8c19b719f27f5dab757afbc9319e (patch) | |
tree | 305f2b9e80ed555c6ca2998d3c54a25f80caaef2 /Lib/test/test_logging.py | |
parent | 0d3a003f241460e417f2108fecf990b7ce5d1449 (diff) | |
download | cpython-d263d185534a8c19b719f27f5dab757afbc9319e.zip cpython-d263d185534a8c19b719f27f5dab757afbc9319e.tar.gz cpython-d263d185534a8c19b719f27f5dab757afbc9319e.tar.bz2 |
Fixed problem with diagnostic output.
Diffstat (limited to 'Lib/test/test_logging.py')
-rw-r--r-- | Lib/test/test_logging.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index b239f58..92e6994 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -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) |