]> granicus.if.org Git - python/commitdiff
move idna test domain to pythontest.net
authorBenjamin Peterson <benjamin@python.org>
Mon, 3 Nov 2014 20:10:47 +0000 (15:10 -0500)
committerBenjamin Peterson <benjamin@python.org>
Mon, 3 Nov 2014 20:10:47 +0000 (15:10 -0500)
Lib/test/test_socket.py

index ff42c8b8ed0011862be12baf3f3cf35e8791cf8e..ea5241978328f7f92bf6a0f690e3ec14a43fff46 100644 (file)
@@ -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')