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
cb306d1b
Kaydet (Commit)
cb306d1b
authored
Şub 03, 2014
tarafından
Ned Deily
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Issue #20474: Fix "unexpected success" test_socket failures on OS X 10.7+.
üst
08df2959
c5640385
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
test_socket.py
Lib/test/test_socket.py
+4
-4
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/test/test_socket.py
Dosyayı görüntüle @
cb306d1b
...
@@ -3635,12 +3635,12 @@ class InterruptedSendTimeoutTest(InterruptedTimeoutBase,
...
@@ -3635,12 +3635,12 @@ class InterruptedSendTimeoutTest(InterruptedTimeoutBase,
self
.
assertNotIsInstance
(
cm
.
exception
,
socket
.
timeout
)
self
.
assertNotIsInstance
(
cm
.
exception
,
socket
.
timeout
)
self
.
assertEqual
(
cm
.
exception
.
errno
,
errno
.
EINTR
)
self
.
assertEqual
(
cm
.
exception
.
errno
,
errno
.
EINTR
)
# Issue #12958: The following tests have problems on
Mac OS X
# Issue #12958: The following tests have problems on
OS X prior to 10.7
@support.
anticipate_failure
(
sys
.
platform
==
"darwin"
)
@support.
requires_mac_ver
(
10
,
7
)
def
testInterruptedSendTimeout
(
self
):
def
testInterruptedSendTimeout
(
self
):
self
.
checkInterruptedSend
(
self
.
serv_conn
.
send
,
b
"a"
*
512
)
self
.
checkInterruptedSend
(
self
.
serv_conn
.
send
,
b
"a"
*
512
)
@support.
anticipate_failure
(
sys
.
platform
==
"darwin"
)
@support.
requires_mac_ver
(
10
,
7
)
def
testInterruptedSendtoTimeout
(
self
):
def
testInterruptedSendtoTimeout
(
self
):
# Passing an actual address here as Python's wrapper for
# Passing an actual address here as Python's wrapper for
# sendto() doesn't allow passing a zero-length one; POSIX
# sendto() doesn't allow passing a zero-length one; POSIX
...
@@ -3649,7 +3649,7 @@ class InterruptedSendTimeoutTest(InterruptedTimeoutBase,
...
@@ -3649,7 +3649,7 @@ class InterruptedSendTimeoutTest(InterruptedTimeoutBase,
self
.
checkInterruptedSend
(
self
.
serv_conn
.
sendto
,
b
"a"
*
512
,
self
.
checkInterruptedSend
(
self
.
serv_conn
.
sendto
,
b
"a"
*
512
,
self
.
serv_addr
)
self
.
serv_addr
)
@support.
anticipate_failure
(
sys
.
platform
==
"darwin"
)
@support.
requires_mac_ver
(
10
,
7
)
@requireAttrs
(
socket
.
socket
,
"sendmsg"
)
@requireAttrs
(
socket
.
socket
,
"sendmsg"
)
def
testInterruptedSendmsgTimeout
(
self
):
def
testInterruptedSendmsgTimeout
(
self
):
self
.
checkInterruptedSend
(
self
.
serv_conn
.
sendmsg
,
[
b
"a"
*
512
])
self
.
checkInterruptedSend
(
self
.
serv_conn
.
sendmsg
,
[
b
"a"
*
512
])
...
...
Misc/NEWS
Dosyayı görüntüle @
cb306d1b
...
@@ -106,6 +106,8 @@ Tests
...
@@ -106,6 +106,8 @@ Tests
- Issue #19990: Added tests for the imghdr module. Based on patch by
- Issue #19990: Added tests for the imghdr module. Based on patch by
Claudiu Popa.
Claudiu Popa.
- Issue #20474: Fix test_socket "unexpected success" failures on OS X 10.7+.
Tools/Demos
Tools/Demos
-----------
-----------
...
...
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