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
45cb7f65
Kaydet (Commit)
45cb7f65
authored
Ock 15, 2013
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix test_socket broken in previous commit (changeset 13e2e44db99d).
Added new checks for socket.setblocking().
üst
df20b51d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
test_socket.py
Lib/test/test_socket.py
+7
-5
No files found.
Lib/test/test_socket.py
Dosyayı görüntüle @
45cb7f65
...
...
@@ -3566,7 +3566,10 @@ class NonBlockingTCPTests(ThreadedTCPSocketTest):
def
testSetBlocking
(
self
):
# Testing whether set blocking works
self
.
serv
.
setblocking
(
0
)
self
.
serv
.
setblocking
(
True
)
self
.
assertIsNone
(
self
.
serv
.
gettimeout
())
self
.
serv
.
setblocking
(
False
)
self
.
assertEqual
(
self
.
serv
.
gettimeout
(),
0.0
)
start
=
time
.
time
()
try
:
self
.
serv
.
accept
()
...
...
@@ -3575,10 +3578,9 @@ class NonBlockingTCPTests(ThreadedTCPSocketTest):
end
=
time
.
time
()
self
.
assertTrue
((
end
-
start
)
<
1.0
,
"Error setting non-blocking mode."
)
# Issue 15989
self
.
assertRaises
(
OverflowError
,
self
.
serv
.
setblocking
,
_testcapi
.
INT_MAX
+
1
)
self
.
assertRaises
(
OverflowError
,
self
.
serv
.
setblocking
,
_testcapi
.
UINT_MAX
+
1
)
if
_testcapi
.
UINT_MAX
<
_testcapi
.
ULONG_MAX
:
self
.
serv
.
setblocking
(
_testcapi
.
UINT_MAX
+
1
)
self
.
assertIsNone
(
self
.
serv
.
gettimeout
())
def
_testSetBlocking
(
self
):
pass
...
...
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