Commit 644e149b authored by Guido van Rossum's avatar Guido van Rossum

Get rid of a test for repr() of a file object.

parent ad4404cd
......@@ -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"))
......
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