Commit b60156e8 authored by Ezio Melotti's avatar Ezio Melotti

#14161: fix test failures on Windows.

parent eace3a72
......@@ -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(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment