diff --git a/Lib/test/test_binascii.py b/Lib/test/test_binascii.py index 0ee842c4e9e..28908ef3775 100755 --- a/Lib/test/test_binascii.py +++ b/Lib/test/test_binascii.py @@ -84,4 +84,10 @@ def addnoise(line): res = res + b assert res == testdata +# Test crc32() +crc = binascii.crc32("Test the CRC-32 of") +crc = binascii.crc32(" this string.", crc) +if crc != 1571220330: + print "binascii.crc32() failed." + # The hqx test is in test_binhex.py