mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Get rid of a test for repr() of a file object.
This commit is contained in:
parent
ad4404cdbf
commit
644e149b11
1 changed files with 0 additions and 8 deletions
|
|
@ -114,14 +114,6 @@ class ReprTests(unittest.TestCase):
|
|||
self.failUnless(s.endswith(">"))
|
||||
self.failUnless(s.find("...") in [12, 13])
|
||||
|
||||
def test_file(self):
|
||||
fp = open(unittest.__file__)
|
||||
self.failUnless(repr(fp).startswith(
|
||||
"<open file '%s', mode 'r' at 0x" % unittest.__file__))
|
||||
fp.close()
|
||||
self.failUnless(repr(fp).startswith(
|
||||
"<closed file '%s', mode 'r' at 0x" % unittest.__file__))
|
||||
|
||||
def test_lambda(self):
|
||||
self.failUnless(repr(lambda x: x).startswith(
|
||||
"<function <lambda"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue