diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index 1a85c0e7ce4..60e5bf7e2c4 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -641,8 +641,10 @@ def test_idna(self): # these should all be successful socket.gethostbyname('испытание.python.org') socket.gethostbyname_ex('испытание.python.org') - socket.getaddrinfo('испытание.python.org',0) - socket.gethostbyaddr('испытание.python.org') + socket.getaddrinfo('испытание.python.org',0,socket.AF_UNSPEC,socket.SOCK_STREAM) + # this may not work if the forward lookup choses the IPv6 address, as that doesn't + # have a reverse entry yet + # socket.gethostbyaddr('испытание.python.org') @unittest.skipUnless(thread, 'Threading required for this test.') class BasicTCPTest(SocketConnectedTest):