diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-03-17 08:29:44 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-03-17 08:29:44 (GMT) |
commit | 7096760b2511df9b0e2ec846df9eb72c59e785fc (patch) | |
tree | 24a93465b1325a58b51e00eaf3924c5ec4bffd33 /Lib/test/test_bz2.py | |
parent | 7c3072437a8f2e4cd487e38d46ea99d0026bd4c2 (diff) | |
download | cpython-7096760b2511df9b0e2ec846df9eb72c59e785fc.zip cpython-7096760b2511df9b0e2ec846df9eb72c59e785fc.tar.gz cpython-7096760b2511df9b0e2ec846df9eb72c59e785fc.tar.bz2 |
Get rid of xreadlines() (methods).
Diffstat (limited to 'Lib/test/test_bz2.py')
-rw-r--r-- | Lib/test/test_bz2.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/Lib/test/test_bz2.py b/Lib/test/test_bz2.py index 504a6d7..356c2e3 100644 --- a/Lib/test/test_bz2.py +++ b/Lib/test/test_bz2.py @@ -110,14 +110,6 @@ class BZ2FileTest(BaseTest): self.assertEqual(list(iter(bz2f)), sio.readlines()) bz2f.close() - def testXReadLines(self): - # "Test BZ2File.xreadlines()" - self.createTempFile() - bz2f = BZ2File(self.filename) - sio = StringIO(self.TEXT) - self.assertEqual(list(bz2f.xreadlines()), sio.readlines()) - bz2f.close() - def testUniversalNewlinesLF(self): # "Test BZ2File.read() with universal newlines (\\n)" self.createTempFile() @@ -256,7 +248,7 @@ class BZ2FileTest(BaseTest): bz2f.close() self.assertEqual(lines, ['Test']) bz2f = BZ2File(self.filename) - xlines = list(bz2f.xreadlines()) + xlines = list(bz2f.readlines()) bz2f.close() self.assertEqual(lines, ['Test']) |