mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
move idna test domain to pythontest.net
This commit is contained in:
parent
6f1abda02b
commit
863c962e68
1 changed files with 4 additions and 3 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue