[Python-checkins] cpython (2.7): #14161: fix test failures on Windows.
ezio.melotti
python-checkins at python.org
Mon Mar 12 01:09:16 CET 2012
http://hg.python.org/cpython/rev/6b1fad34d893
changeset: 75529:6b1fad34d893
branch: 2.7
user: Ezio Melotti <ezio.melotti at gmail.com>
date: Mon Mar 12 02:09:02 2012 +0200
summary:
#14161: fix test failures on Windows.
files:
Lib/test/test_repr.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Lib/test/test_repr.py b/Lib/test/test_repr.py
--- a/Lib/test/test_repr.py
+++ b/Lib/test/test_repr.py
@@ -130,10 +130,10 @@
def test_file(self):
fp = open(unittest.__file__)
self.assertTrue(repr(fp).startswith(
- "<open file '%s', mode 'r' at 0x" % unittest.__file__))
+ "<open file %r, mode 'r' at 0x" % unittest.__file__))
fp.close()
self.assertTrue(repr(fp).startswith(
- "<closed file '%s', mode 'r' at 0x" % unittest.__file__))
+ "<closed file %r, mode 'r' at 0x" % unittest.__file__))
def test_lambda(self):
self.assertTrue(repr(lambda x: x).startswith(
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list