summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-11-03 20:10:47 (GMT)
committerBenjamin Peterson <benjamin@python.org>2014-11-03 20:10:47 (GMT)
commit863c962e68417f74a4671de58725170fc91c3910 (patch)
treebeec9bfc92226c242fc69e2a26ac937a92906917 /Lib/test
parent6f1abda02b53b29f60338462fb770e73c565bc46 (diff)
downloadcpython-863c962e68417f74a4671de58725170fc91c3910.zip
cpython-863c962e68417f74a4671de58725170fc91c3910.tar.gz
cpython-863c962e68417f74a4671de58725170fc91c3910.tar.bz2
move idna test domain to pythontest.net
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_socket.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index ff42c8b..ea52419 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')