]> granicus.if.org Git - python/commitdiff
Get rid of a test for repr() of a file object.
authorGuido van Rossum <guido@python.org>
Sun, 27 May 2007 09:21:59 +0000 (09:21 +0000)
committerGuido van Rossum <guido@python.org>
Sun, 27 May 2007 09:21:59 +0000 (09:21 +0000)
Lib/test/test_repr.py

index bcb5a32b3936b86b4845922c864af10e9eeb31ee..5059c08c98847dda123e79ac96f7819e38ebcbfc 100644 (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"))