diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2012-03-12 02:09:02 +0200 |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2012-03-12 02:09:02 +0200 |
commit | b60156e809038ab5f8c59152ddeaa0d44ad9ed6a (patch) | |
tree | ca02e0d2409768535f377b1a925bec6c49077d30 | |
parent | eace3a726146c9bd383d981f2b5c6add96f13632 (diff) | |
download | cpython-git-b60156e809038ab5f8c59152ddeaa0d44ad9ed6a.tar.gz |
#14161: fix test failures on Windows.
-rw-r--r-- | 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 index 8b20acdc8e..062fccf9e0 100644 --- a/Lib/test/test_repr.py +++ b/Lib/test/test_repr.py @@ -130,10 +130,10 @@ class ReprTests(unittest.TestCase): 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( |