mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Use hex() when outputting the various checksums so the test output is the
same on 32 and 64 bit machines.
This commit is contained in:
parent
a937d14898
commit
446898ff4a
2 changed files with 5 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
||||||
test_zlib
|
test_zlib
|
||||||
-440295136 1136044692
|
0xe5c1a120 0x43b6aa94
|
||||||
198574839 198574839
|
0xbd602f7 0xbd602f7
|
||||||
expecting Bad compression level
|
expecting Bad compression level
|
||||||
expecting Invalid initialization option
|
expecting Invalid initialization option
|
||||||
expecting Invalid initialization option
|
expecting Invalid initialization option
|
||||||
|
|
|
@ -11,9 +11,9 @@ except ImportError:
|
||||||
buf = file.read() * 8
|
buf = file.read() * 8
|
||||||
file.close()
|
file.close()
|
||||||
|
|
||||||
# test the chucksums
|
# test the chucksums (hex so the test doesn't break on 64-bit machines)
|
||||||
print zlib.crc32('penguin'), zlib.crc32('penguin', 1)
|
print hex(zlib.crc32('penguin')), hex(zlib.crc32('penguin', 1))
|
||||||
print zlib.adler32('penguin'), zlib.adler32('penguin', 1)
|
print hex(zlib.adler32('penguin')), hex(zlib.adler32('penguin', 1))
|
||||||
|
|
||||||
# make sure we generate some expected errors
|
# make sure we generate some expected errors
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue