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
05d936d2
Kaydet (Commit)
05d936d2
authored
Eki 13, 2010
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Let test_ssl fail gracefully if ssl support is not available
üst
f26f87ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
14 deletions
+6
-14
test_ssl.py
Lib/test/test_ssl.py
+6
-14
No files found.
Lib/test/test_ssl.py
Dosyayı görüntüle @
05d936d2
...
...
@@ -18,17 +18,12 @@ import weakref
import
platform
import
functools
# Optionally test SSL support, if we have it in the tested platform
skip_expected
=
False
try
:
import
ssl
except
ImportError
:
skip_expected
=
True
else
:
PROTOCOLS
=
[
ssl
.
PROTOCOL_SSLv2
,
ssl
.
PROTOCOL_SSLv3
,
ssl
.
PROTOCOL_SSLv23
,
ssl
.
PROTOCOL_TLSv1
]
ssl
=
support
.
import_module
(
"ssl"
)
PROTOCOLS
=
[
ssl
.
PROTOCOL_SSLv2
,
ssl
.
PROTOCOL_SSLv3
,
ssl
.
PROTOCOL_SSLv23
,
ssl
.
PROTOCOL_TLSv1
]
HOST
=
support
.
HOST
...
...
@@ -1489,9 +1484,6 @@ else:
def
test_main
(
verbose
=
False
):
if
skip_expected
:
raise
unittest
.
SkipTest
(
"No SSL support"
)
if
support
.
verbose
:
plats
=
{
'Linux'
:
platform
.
linux_distribution
,
...
...
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