Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
446898ff
Kaydet (Commit)
446898ff
authored
Nis 24, 1998
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use hex() when outputting the various checksums so the test output is the
same on 32 and 64 bit machines.
üst
a937d148
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
test_zlib
Lib/test/output/test_zlib
+2
-2
test_zlib.py
Lib/test/test_zlib.py
+3
-3
No files found.
Lib/test/output/test_zlib
Dosyayı görüntüle @
446898ff
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
...
...
Lib/test/test_zlib.py
Dosyayı görüntüle @
446898ff
...
@@ -11,9 +11,9 @@ except ImportError:
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment