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
1222669b
Kaydet (Commit)
1222669b
authored
May 06, 2010
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #8629: Disable some test_ssl tests, since they give different
results with OpenSSL 1.0.0 and higher.
üst
a8538a50
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
5 deletions
+16
-5
test_ssl.py
Lib/test/test_ssl.py
+13
-5
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/test/test_ssl.py
Dosyayı görüntüle @
1222669b
...
...
@@ -716,7 +716,7 @@ else:
raise
else
:
if
not
expect_success
:
self
.
fail
(
raise
AssertionError
(
"Client protocol
%
s succeeded with server protocol
%
s!"
%
(
ssl
.
get_protocol_name
(
client_protocol
),
ssl
.
get_protocol_name
(
server_protocol
)))
...
...
@@ -832,7 +832,9 @@ else:
def
test_protocol_sslv2
(
self
):
"""Connecting to an SSLv2 server with various client options"""
if
test_support
.
verbose
:
sys
.
stdout
.
write
(
"
\n
"
)
sys
.
stdout
.
write
(
"
\n
test_protocol_sslv2 disabled, "
"as it fails on OpenSSL 1.0.0+"
)
return
try_protocol_combo
(
ssl
.
PROTOCOL_SSLv2
,
ssl
.
PROTOCOL_SSLv2
,
True
)
try_protocol_combo
(
ssl
.
PROTOCOL_SSLv2
,
ssl
.
PROTOCOL_SSLv2
,
True
,
ssl
.
CERT_OPTIONAL
)
try_protocol_combo
(
ssl
.
PROTOCOL_SSLv2
,
ssl
.
PROTOCOL_SSLv2
,
True
,
ssl
.
CERT_REQUIRED
)
...
...
@@ -843,7 +845,9 @@ else:
def
test_protocol_sslv23
(
self
):
"""Connecting to an SSLv23 server with various client options"""
if
test_support
.
verbose
:
sys
.
stdout
.
write
(
"
\n
"
)
sys
.
stdout
.
write
(
"
\n
test_protocol_sslv23 disabled, "
"as it fails on OpenSSL 1.0.0+"
)
return
try
:
try_protocol_combo
(
ssl
.
PROTOCOL_SSLv23
,
ssl
.
PROTOCOL_SSLv2
,
True
)
except
(
ssl
.
SSLError
,
socket
.
error
),
x
:
...
...
@@ -867,7 +871,9 @@ else:
def
test_protocol_sslv3
(
self
):
"""Connecting to an SSLv3 server with various client options"""
if
test_support
.
verbose
:
sys
.
stdout
.
write
(
"
\n
"
)
sys
.
stdout
.
write
(
"
\n
test_protocol_sslv3 disabled, "
"as it fails on OpenSSL 1.0.0+"
)
return
try_protocol_combo
(
ssl
.
PROTOCOL_SSLv3
,
ssl
.
PROTOCOL_SSLv3
,
True
)
try_protocol_combo
(
ssl
.
PROTOCOL_SSLv3
,
ssl
.
PROTOCOL_SSLv3
,
True
,
ssl
.
CERT_OPTIONAL
)
try_protocol_combo
(
ssl
.
PROTOCOL_SSLv3
,
ssl
.
PROTOCOL_SSLv3
,
True
,
ssl
.
CERT_REQUIRED
)
...
...
@@ -878,7 +884,9 @@ else:
def
test_protocol_tlsv1
(
self
):
"""Connecting to a TLSv1 server with various client options"""
if
test_support
.
verbose
:
sys
.
stdout
.
write
(
"
\n
"
)
sys
.
stdout
.
write
(
"
\n
test_protocol_tlsv1 disabled, "
"as it fails on OpenSSL 1.0.0+"
)
return
try_protocol_combo
(
ssl
.
PROTOCOL_TLSv1
,
ssl
.
PROTOCOL_TLSv1
,
True
)
try_protocol_combo
(
ssl
.
PROTOCOL_TLSv1
,
ssl
.
PROTOCOL_TLSv1
,
True
,
ssl
.
CERT_OPTIONAL
)
try_protocol_combo
(
ssl
.
PROTOCOL_TLSv1
,
ssl
.
PROTOCOL_TLSv1
,
True
,
ssl
.
CERT_REQUIRED
)
...
...
Misc/NEWS
Dosyayı görüntüle @
1222669b
...
...
@@ -164,6 +164,9 @@ Build
Tests
-----
- Issue #8629: Disable some test_ssl tests, since they give different
results with OpenSSL 1.0.0 and higher.
- Issue #8576: Remove use of find_unused_port() in test_smtplib and
test_multiprocessing. Patch by Paul Moore.
...
...
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