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
b7bb675d
Commit
b7bb675d
authored
Feb 13, 2014
by
Ned Deily
Browse files
Options
Browse Files
Download
Plain Diff
Issue #20605: Make test_socket getaddrinfo OS X segfault test more robust.
parents
0714b8b6
b24f481a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
Lib/test/test_socket.py
Lib/test/test_socket.py
+8
-2
Misc/NEWS
Misc/NEWS
+5
-0
No files found.
Lib/test/test_socket.py
View file @
b7bb675d
...
...
@@ -1234,9 +1234,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 @
b7bb675d
...
...
@@ -33,6 +33,11 @@ Library
-
Issue
#
19856
:
shutil
.
move
()
failed
to
move
a
directory
to
other
directory
on
Windows
if
source
name
ends
with
os
.
altsep
.
Tests
-----
-
Issue
#
20605
:
Make
test_socket
getaddrinfo
OS
X
segfault
test
more
robust
.
What
's New in Python 3.4.0 release candidate 1?
===============================================
...
...
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