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
64018ae0
Kaydet (Commit)
64018ae0
authored
Mar 24, 2008
tarafından
Neal Norwitz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Skip test if socket gets reset, the problem is on the other side.
üst
22c65426
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
test_xmlrpc_net.py
Lib/test/test_xmlrpc_net.py
+11
-1
No files found.
Lib/test/test_xmlrpc_net.py
Dosyayı görüntüle @
64018ae0
#!/usr/bin/env python
#!/usr/bin/env python
import
errno
import
socket
import
sys
import
unittest
import
unittest
from
test
import
test_support
from
test
import
test_support
...
@@ -11,7 +14,14 @@ class CurrentTimeTest(unittest.TestCase):
...
@@ -11,7 +14,14 @@ class CurrentTimeTest(unittest.TestCase):
# Get the current time from xmlrpc.com. This code exercises
# Get the current time from xmlrpc.com. This code exercises
# the minimal HTTP functionality in xmlrpclib.
# the minimal HTTP functionality in xmlrpclib.
server
=
xmlrpclib
.
ServerProxy
(
"http://time.xmlrpc.com/RPC2"
)
server
=
xmlrpclib
.
ServerProxy
(
"http://time.xmlrpc.com/RPC2"
)
t0
=
server
.
currentTime
.
getCurrentTime
()
try
:
t0
=
server
.
currentTime
.
getCurrentTime
()
except
socket
.
error
as
e
:
if
e
.
errno
!=
errno
.
ECONNRESET
:
raise
print
(
" test_current_time: socket got reset, skipping test"
,
file
=
sys
.
stderr
)
return
# Perform a minimal sanity check on the result, just to be sure
# Perform a minimal sanity check on the result, just to be sure
# the request means what we think it means.
# the request means what we think it means.
...
...
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