summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_repr.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-05-27 09:21:59 (GMT)
committerGuido van Rossum <guido@python.org>2007-05-27 09:21:59 (GMT)
commit644e149b111064c77743be89a948b710350f3d49 (patch)
treeaacefbd57125f3dffda38af80719fc9ea600a4d6 /Lib/test/test_repr.py
parentad4404cdbf636f169a7da7ce29b8d514d6a89bf1 (diff)
downloadcpython-644e149b111064c77743be89a948b710350f3d49.zip
cpython-644e149b111064c77743be89a948b710350f3d49.tar.gz
cpython-644e149b111064c77743be89a948b710350f3d49.tar.bz2
Get rid of a test for repr() of a file object.
Diffstat (limited to 'Lib/test/test_repr.py')
-rw-r--r--Lib/test/test_repr.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/Lib/test/test_repr.py b/Lib/test/test_repr.py
index bcb5a32..5059c08 100644
--- a/Lib/test/test_repr.py
+++ b/Lib/test/test_repr.py
@@ -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"))