diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index b239f587828..92e69941325 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -3682,7 +3682,8 @@ def test_rollover(self): 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)