summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2010-08-22 19:33:47 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2010-08-22 19:33:47 (GMT)
commitfc0275a14a1c1c3df276bf9161cfab9da8026257 (patch)
treef43618f0006ea72c082830d0d4187dedc491123a /Lib
parentd41a37a148fbba4c3356a8727b579389af5038d9 (diff)
downloadcpython-fc0275a14a1c1c3df276bf9161cfab9da8026257.zip
cpython-fc0275a14a1c1c3df276bf9161cfab9da8026257.tar.gz
cpython-fc0275a14a1c1c3df276bf9161cfab9da8026257.tar.bz2
Issue #1027206: Support IDNA in gethostbyname, gethostbyname_ex and
getaddrinfo. Patch by David Watson.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_socket.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index 02c99b4..e0912d8 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -637,6 +637,11 @@ class GeneralModuleTests(unittest.TestCase):
flags=socket.AI_PASSIVE)
self.assertEqual(a, b)
+ def test_idna(self):
+ # these should all be successful
+ socket.gethostbyname('испытание.python.org')
+ socket.gethostbyname_ex('испытание.python.org')
+ socket.getaddrinfo('испытание.python.org',0)
@unittest.skipUnless(thread, 'Threading required for this test.')
class BasicTCPTest(SocketConnectedTest):