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
bb93f4bb
Kaydet (Commit)
bb93f4bb
authored
Haz 20, 2006
tarafından
Brett Cannon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Raise TestSkipped when the test socket connection is refused.
üst
1fb8d83a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
test_socket_ssl.py
Lib/test/test_socket_ssl.py
+7
-0
No files found.
Lib/test/test_socket_ssl.py
Dosyayı görüntüle @
bb93f4bb
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
import
sys
import
sys
from
test
import
test_support
from
test
import
test_support
import
socket
import
socket
import
errno
# Optionally test SSL support. This requires the 'network' resource as given
# Optionally test SSL support. This requires the 'network' resource as given
# on the regrtest command line.
# on the regrtest command line.
...
@@ -54,6 +55,12 @@ def test_timeout():
...
@@ -54,6 +55,12 @@ def test_timeout():
for. If this message is seen often, test_timeout should be changed to
for. If this message is seen often, test_timeout should be changed to
use a more reliable address."""
%
(
ADDR
,)
use a more reliable address."""
%
(
ADDR
,)
return
return
except
socket
.
err
,
exc
:
# In case connection is refused.
if
(
isinstance
(
exc
.
message
,
tuple
)
and
exc
.
message
[
0
]
==
errno
.
ECONNREFUSED
):
raise
test_support
.
TestSkipped
(
"test socket connection refused"
)
else
:
raise
exc
ss
=
socket
.
ssl
(
s
)
ss
=
socket
.
ssl
(
s
)
# Read part of return welcome banner twice.
# Read part of return welcome banner twice.
...
...
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