mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-114917: add support for AI_NUMERICSERV in getaddrinfo emulation (#114918)
This commit is contained in:
parent
b0a4f6599a
commit
3453b5c1d6
4 changed files with 12 additions and 2 deletions
|
@ -1662,8 +1662,11 @@ class GeneralModuleTests(unittest.TestCase):
|
|||
# Issue #6697.
|
||||
self.assertRaises(UnicodeEncodeError, socket.getaddrinfo, 'localhost', '\uD800')
|
||||
|
||||
# Issue 17269: test workaround for OS X platform bug segfault
|
||||
if hasattr(socket, 'AI_NUMERICSERV'):
|
||||
self.assertRaises(socket.gaierror, socket.getaddrinfo, "localhost", "http",
|
||||
flags=socket.AI_NUMERICSERV)
|
||||
|
||||
# Issue 17269: test workaround for OS X platform bug segfault
|
||||
try:
|
||||
# The arguments here are undefined and the call may succeed
|
||||
# or fail. All we care here is that it doesn't segfault.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue