mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
(3.3->default) Ensure that the fix for #17269 also works on OSX 10.4
AI_NUMERICSERV isn't defined on OSX 10.4.
This commit is contained in:
commit
36451f076b
2 changed files with 3 additions and 2 deletions
|
@ -1202,7 +1202,8 @@ class GeneralModuleTests(unittest.TestCase):
|
|||
self.assertRaises(UnicodeEncodeError, socket.getaddrinfo, 'localhost', '\uD800')
|
||||
|
||||
# Issue 17269
|
||||
socket.getaddrinfo("localhost", None, 0, 0, 0, socket.AI_NUMERICSERV)
|
||||
if hasattr(socket, 'AI_NUMERICSERV'):
|
||||
socket.getaddrinfo("localhost", None, 0, 0, 0, socket.AI_NUMERICSERV)
|
||||
|
||||
def test_getnameinfo(self):
|
||||
# only IP addresses are allowed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue