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
b24f481a
Kaydet (Commit)
b24f481a
authored
Şub 14, 2014
tarafından
Ned Deily
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #20605: Make test_socket getaddrinfo OS X segfault test more robust.
üst
ffadbb7e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
test_socket.py
Lib/test/test_socket.py
+8
-2
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/test/test_socket.py
Dosyayı görüntüle @
b24f481a
...
@@ -1164,9 +1164,15 @@ class GeneralModuleTests(unittest.TestCase):
...
@@ -1164,9 +1164,15 @@ class GeneralModuleTests(unittest.TestCase):
# Issue #6697.
# Issue #6697.
self
.
assertRaises
(
UnicodeEncodeError
,
socket
.
getaddrinfo
,
'localhost'
,
'
\uD800
'
)
self
.
assertRaises
(
UnicodeEncodeError
,
socket
.
getaddrinfo
,
'localhost'
,
'
\uD800
'
)
# Issue 17269
# Issue 17269
: test workaround for OS X platform bug segfault
if
hasattr
(
socket
,
'AI_NUMERICSERV'
):
if
hasattr
(
socket
,
'AI_NUMERICSERV'
):
socket
.
getaddrinfo
(
"localhost"
,
None
,
0
,
0
,
0
,
socket
.
AI_NUMERICSERV
)
try
:
# The arguments here are undefined and the call may succeed
# or fail. All we care here is that it doesn't segfault.
socket
.
getaddrinfo
(
"localhost"
,
None
,
0
,
0
,
0
,
socket
.
AI_NUMERICSERV
)
except
socket
.
gaierror
:
pass
def
test_getnameinfo
(
self
):
def
test_getnameinfo
(
self
):
# only IP addresses are allowed
# only IP addresses are allowed
...
...
Misc/NEWS
Dosyayı görüntüle @
b24f481a
...
@@ -116,6 +116,8 @@ Tests
...
@@ -116,6 +116,8 @@ Tests
-
Issue
#
20474
:
Fix
test_socket
"unexpected success"
failures
on
OS
X
10.7
+.
-
Issue
#
20474
:
Fix
test_socket
"unexpected success"
failures
on
OS
X
10.7
+.
-
Issue
#
20605
:
Make
test_socket
getaddrinfo
OS
X
segfault
test
more
robust
.
Documentation
Documentation
-------------
-------------
...
...
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