summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_zlib.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2008-12-02 06:00:15 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2008-12-02 06:00:15 (GMT)
commit15b16a3ec4d515a7ea506fafd4a830fda3c84616 (patch)
tree82f0d5d902556899c6375d9e70b303131ccb5d48 /Lib/test/test_zlib.py
parenteae122be62af41d2b6557c0056cc167a3052a034 (diff)
downloadcpython-15b16a3ec4d515a7ea506fafd4a830fda3c84616.zip
cpython-15b16a3ec4d515a7ea506fafd4a830fda3c84616.tar.gz
cpython-15b16a3ec4d515a7ea506fafd4a830fda3c84616.tar.bz2
Issue #4387: binascii now refuses to accept str as binary input.
Diffstat (limited to 'Lib/test/test_zlib.py')
-rw-r--r--Lib/test/test_zlib.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_zlib.py b/Lib/test/test_zlib.py
index f52aa5e..99c8dda 100644
--- a/Lib/test/test_zlib.py
+++ b/Lib/test/test_zlib.py
@@ -48,11 +48,11 @@ class ChecksumTestCase(unittest.TestCase):
self.assertEqual(zlib.adler32('spam'), 72286642)
def test_same_as_binascii_crc32(self):
- foo = 'abcdefghijklmnop'
+ foo = b'abcdefghijklmnop'
crc = 2486878355
self.assertEqual(binascii.crc32(foo), crc)
self.assertEqual(zlib.crc32(foo), crc)
- self.assertEqual(binascii.crc32('spam'), zlib.crc32('spam'))
+ self.assertEqual(binascii.crc32(b'spam'), zlib.crc32(b'spam'))