Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 863c962

Browse files
committed
move idna test domain to pythontest.net
1 parent 6f1abda commit 863c962

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Lib/test/test_socket.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -775,9 +775,10 @@ def test_getnameinfo(self):
775775
def test_idna(self):
776776
support.requires('network')
777777
# these should all be successful
778-
socket.gethostbyname('испытание.python.org')
779-
socket.gethostbyname_ex('испытание.python.org')
780-
socket.getaddrinfo('испытание.python.org',0,socket.AF_UNSPEC,socket.SOCK_STREAM)
778+
domain = 'испытание.pythontest.net'
779+
socket.gethostbyname(domain)
780+
socket.gethostbyname_ex(domain)
781+
socket.getaddrinfo(domain,0,socket.AF_UNSPEC,socket.SOCK_STREAM)
781782
# this may not work if the forward lookup choses the IPv6 address, as that doesn't
782783
# have a reverse entry yet
783784
# socket.gethostbyaddr('испытание.python.org')

0 commit comments

Comments
 (0)