From: Benjamin Peterson Date: Mon, 3 Nov 2014 20:10:47 +0000 (-0500) Subject: move idna test domain to pythontest.net X-Git-Tag: 3.2~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=863c962e68417f74a4671de58725170fc91c3910;p=python move idna test domain to pythontest.net --- diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index ff42c8b8ed..ea52419783 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -775,9 +775,10 @@ class GeneralModuleTests(unittest.TestCase): def test_idna(self): support.requires('network') # these should all be successful - socket.gethostbyname('испытание.python.org') - socket.gethostbyname_ex('испытание.python.org') - socket.getaddrinfo('испытание.python.org',0,socket.AF_UNSPEC,socket.SOCK_STREAM) + domain = 'испытание.pythontest.net' + socket.gethostbyname(domain) + socket.gethostbyname_ex(domain) + socket.getaddrinfo(domain,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')