mirror of https://github.com/python/cpython
Get rid of a test for repr() of a file object.
This commit is contained in:
parent
ad4404cdbf
commit
644e149b11
|
@ -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…
Reference in New Issue