[Python-checkins] cpython: Fixed problem with diagnostic output.

vinay.sajip python-checkins at python.org
Sat Mar 3 17:20:43 CET 2012


http://hg.python.org/cpython/rev/58eef400866e
changeset:   75376:58eef400866e
user:        Vinay Sajip <vinay_sajip at yahoo.co.uk>
date:        Sat Mar 03 16:20:37 2012 +0000
summary:
  Fixed problem with diagnostic output.

files:
  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
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -3682,7 +3682,8 @@
             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)
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list