Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
b24f481a
Commit
b24f481a
authored
Feb 13, 2014
by
Ned Deily
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #20605: Make test_socket getaddrinfo OS X segfault test more robust.
parent
ffadbb7e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
Lib/test/test_socket.py
Lib/test/test_socket.py
+8
-2
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/test/test_socket.py
View file @
b24f481a
...
...
@@ -1164,9 +1164,15 @@ class GeneralModuleTests(unittest.TestCase):
# Issue #6697.
self
.
assertRaises
(
UnicodeEncodeError
,
socket
.
getaddrinfo
,
'localhost'
,
'
\
uD800
'
)
# Issue 17269
# Issue 17269
: test workaround for OS X platform bug segfault
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
):
# only IP addresses are allowed
...
...
Misc/NEWS
View file @
b24f481a
...
...
@@ -116,6 +116,8 @@ Tests
-
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
-------------
...
...
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