diff options
author | Guido van Rossum <guido@python.org> | 2007-05-27 09:21:59 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-05-27 09:21:59 (GMT) |
commit | 644e149b111064c77743be89a948b710350f3d49 (patch) | |
tree | aacefbd57125f3dffda38af80719fc9ea600a4d6 /Lib | |
parent | ad4404cdbf636f169a7da7ce29b8d514d6a89bf1 (diff) | |
download | cpython-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')
-rw-r--r-- | Lib/test/test_repr.py | 8 |
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")) |