Commit 863c962e authored by Benjamin Peterson's avatar Benjamin Peterson

move idna test domain to pythontest.net

parent 6f1abda0
...@@ -775,9 +775,10 @@ class GeneralModuleTests(unittest.TestCase): ...@@ -775,9 +775,10 @@ class GeneralModuleTests(unittest.TestCase):
def test_idna(self): def test_idna(self):
support.requires('network') support.requires('network')
# these should all be successful # these should all be successful
socket.gethostbyname('испытание.python.org') domain = 'испытание.pythontest.net'
socket.gethostbyname_ex('испытание.python.org') socket.gethostbyname(domain)
socket.getaddrinfo('испытание.python.org',0,socket.AF_UNSPEC,socket.SOCK_STREAM) 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 # this may not work if the forward lookup choses the IPv6 address, as that doesn't
# have a reverse entry yet # have a reverse entry yet
# socket.gethostbyaddr('испытание.python.org') # socket.gethostbyaddr('испытание.python.org')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment