mirror of
https://github.com/python/cpython.git
synced 2025-11-03 19:34:08 +00:00
#14161: fix test failures on Windows.
This commit is contained in:
parent
eace3a7261
commit
b60156e809
1 changed files with 2 additions and 2 deletions
|
|
@ -130,10 +130,10 @@ class ReprTests(unittest.TestCase):
|
||||||
def test_file(self):
|
def test_file(self):
|
||||||
fp = open(unittest.__file__)
|
fp = open(unittest.__file__)
|
||||||
self.assertTrue(repr(fp).startswith(
|
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()
|
fp.close()
|
||||||
self.assertTrue(repr(fp).startswith(
|
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):
|
def test_lambda(self):
|
||||||
self.assertTrue(repr(lambda x: x).startswith(
|
self.assertTrue(repr(lambda x: x).startswith(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue