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
d49be309
Kaydet (Commit)
d49be309
authored
Mar 31, 2006
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Disable test_socket_ssl timeout test on Windows.
üst
ccadf84a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
test_socket_ssl.py
Lib/test/test_socket_ssl.py
+13
-11
No files found.
Lib/test/test_socket_ssl.py
Dosyayı görüntüle @
d49be309
# Test just the SSL support in the socket module, in a moderately bogus way.
import
sys
from
test
import
test_support
import
socket
...
...
@@ -26,18 +27,19 @@ def test_basic():
buf
=
f
.
read
()
f
.
close
()
def
test_timeout
():
test_support
.
requires
(
'network'
)
if
not
sys
.
platform
.
startswith
(
'win'
):
def
test_timeout
():
test_support
.
requires
(
'network'
)
s
=
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_STREAM
)
s
.
settimeout
(
30.0
)
# connect to service which issues an welcome banner (without need to write anything)
s
.
connect
((
"gmail.org"
,
995
))
ss
=
socket
.
ssl
(
s
)
# read part of return welcome banner twice,# read part of return welcome banner twice
ss
.
read
(
1
)
ss
.
read
(
1
)
s
.
close
()
s
=
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_STREAM
)
s
.
settimeout
(
30.0
)
# connect to service which issues an welcome banner (without need to write anything)
s
.
connect
((
"gmail.org"
,
995
))
ss
=
socket
.
ssl
(
s
)
# read part of return welcome banner twice,# read part of return welcome banner twice
ss
.
read
(
1
)
ss
.
read
(
1
)
s
.
close
()
def
test_rude_shutdown
():
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