mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
The usual.
This commit is contained in:
parent
887d072cc0
commit
e03c050595
25 changed files with 363 additions and 181 deletions
|
@ -11,9 +11,9 @@ except ImportError:
|
|||
buf = file.read() * 8
|
||||
file.close()
|
||||
|
||||
# test the chucksums
|
||||
print zlib.crc32('penguin'), zlib.crc32('penguin', 1)
|
||||
print zlib.adler32('penguin'), zlib.adler32('penguin', 1)
|
||||
# test the chucksums (hex so the test doesn't break on 64-bit machines)
|
||||
print hex(zlib.crc32('penguin')), hex(zlib.crc32('penguin', 1))
|
||||
print hex(zlib.adler32('penguin')), hex(zlib.adler32('penguin', 1))
|
||||
|
||||
# make sure we generate some expected errors
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue