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

This commit is contained in:
Guido van Rossum 2007-05-27 09:21:59 +00:00
parent ad4404cdbf
commit 644e149b11
1 changed files with 0 additions and 8 deletions

View File

@ -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"))