summaryrefslogtreecommitdiff
path: root/Lib/test/test_gzip.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2010-11-21 01:30:29 +0000
committerEzio Melotti <ezio.melotti@gmail.com>2010-11-21 01:30:29 +0000
commit19f2aeba67b5b4dc4dfd589d02d4a0b0804e22ee (patch)
tree596b5a2c45b058ea3e0cdc49cb7539a21410b98d /Lib/test/test_gzip.py
parentb65b4937e20be4a2d3311326909c77bbf2e1c4cd (diff)
downloadcpython-git-19f2aeba67b5b4dc4dfd589d02d4a0b0804e22ee.tar.gz
Merged revisions 86596 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line #9424: Replace deprecated assert* methods in the Python test suite. ........
Diffstat (limited to 'Lib/test/test_gzip.py')
-rw-r--r--Lib/test/test_gzip.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_gzip.py b/Lib/test/test_gzip.py
index a4a7e24480..b9923840e1 100644
--- a/Lib/test/test_gzip.py
+++ b/Lib/test/test_gzip.py
@@ -101,7 +101,7 @@ class TestGzip(unittest.TestCase):
contents += ztxt
if not ztxt: break
zgfile.close()
- self.assertEquals(contents, b'a'*201)
+ self.assertEqual(contents, b'a'*201)
def test_readline(self):
@@ -160,7 +160,7 @@ class TestGzip(unittest.TestCase):
f.seek(10, whence=1)
y = f.read(10)
f.close()
- self.assertEquals(y, data1[20:30])
+ self.assertEqual(y, data1[20:30])
def test_seek_write(self):
# Try seek, write test