[Python-3000-checkins] r55616 - python/branches/py3k-struni/Lib/test/test_repr.py

guido.van.rossum python-3000-checkins at python.org
Sun May 27 11:22:00 CEST 2007


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


More information about the Python-3000-checkins mailing list