Issue #1027206: Support IDNA in gethostbyname, gethostbyname_ex and
getaddrinfo. Patch by David Watson.
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 @@
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):