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
e789a1d8
Commit
e789a1d8
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
f6c0ec4f
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 @
e789a1d8
...
...
@@ -663,9 +663,15 @@ class GeneralModuleTests(unittest.TestCase):
socket
.
getaddrinfo
(
None
,
0
,
socket
.
AF_UNSPEC
,
socket
.
SOCK_STREAM
,
0
,
socket
.
AI_PASSIVE
)
# 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
check_sendall_interrupted
(
self
,
with_timeout
):
# socketpair() is not stricly required, but it makes things easier.
...
...
Misc/NEWS
View file @
e789a1d8
...
...
@@ -282,6 +282,8 @@ Tests
- Issue #19085: Added basic tests for all tkinter widget options.
- 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