Author: guido.van.rossum
Date: Sun May 27 11:21:59 2007
New Revision: 55616

Modified:
   python/branches/py3k-struni/Lib/test/test_repr.py
Log:
Get rid of a test for repr() of a file object.


Modified: python/branches/py3k-struni/Lib/test/test_repr.py
==============================================================================
--- python/branches/py3k-struni/Lib/test/test_repr.py   (original)
+++ python/branches/py3k-struni/Lib/test/test_repr.py   Sun May 27 11:21:59 2007
@@ -114,14 +114,6 @@
         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"))
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to