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
0f261583
Kaydet (Commit)
0f261583
authored
Eki 25, 2017
tarafından
Serhiy Storchaka
Kaydeden (comit)
GitHub
Eki 25, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-31664: Fix test_crypt for the openwall implementation of crypt. (#4116)
üst
086c3ae5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
test_crypt.py
Lib/test/test_crypt.py
+7
-1
No files found.
Lib/test/test_crypt.py
Dosyayı görüntüle @
0f261583
...
...
@@ -57,7 +57,13 @@ class CryptTestCase(unittest.TestCase):
def
test_invalid_log_rounds
(
self
):
for
log_rounds
in
(
1
,
-
1
,
999
):
salt
=
crypt
.
mksalt
(
crypt
.
METHOD_BLOWFISH
,
log_rounds
=
log_rounds
)
self
.
assertIsNone
(
crypt
.
crypt
(
'mypassword'
,
salt
))
cr
=
crypt
.
crypt
(
'mypassword'
,
salt
)
if
cr
is
not
None
:
# On failure the openwall implementation returns a magic
# string that is shorter than 13 characters and is guaranteed
# to differ from a salt.
self
.
assertNotEqual
(
cr
,
salt
)
self
.
assertLess
(
len
(
cr
),
13
)
if
__name__
==
"__main__"
:
...
...
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