diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-11-03 20:12:06 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-11-03 20:12:06 (GMT) |
commit | 8d2d5b9c598d319bc209667f3ae8d2d5186ac82e (patch) | |
tree | 7b958ba24e0f6ff368af631fa208878b7d08c5e7 /Lib/test/test_socket.py | |
parent | 4ffb0752710f0c0720d4f2af0c4b7ce1ebb9d2bd (diff) | |
parent | 97751fa5c985055cd10e789702fdc33f0d30b8ad (diff) | |
download | cpython-8d2d5b9c598d319bc209667f3ae8d2d5186ac82e.zip cpython-8d2d5b9c598d319bc209667f3ae8d2d5186ac82e.tar.gz cpython-8d2d5b9c598d319bc209667f3ae8d2d5186ac82e.tar.bz2 |
merge 3.3
Diffstat (limited to 'Lib/test/test_socket.py')
-rw-r--r-- | Lib/test/test_socket.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index 15e7640..b0caa63 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -1291,9 +1291,10 @@ class GeneralModuleTests(unittest.TestCase): if e.errno == socket.EAI_NODATA: self.skipTest('internet access required for this test') # 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') |