diff Lib/test/test_socket.py @ 64442:5997ae2eab37

Issue #9777: test_idna requires the "network" resource
author Antoine Pitrou <solipsis@pitrou.net>
date Sat, 04 Sep 2010 18:50:35 +0000
parents b8ee80863d63
children b2f7cf9c6776
line wrap: on
line diff
--- a/Lib/test/test_socket.py	Sat Sep 04 18:45:37 2010 +0000
+++ b/Lib/test/test_socket.py	Sat Sep 04 18:50:35 2010 +0000
@@ -642,6 +642,7 @@
         self.assertRaises(socket.error, socket.getnameinfo, ('mail.python.org',0), 0)
 
     def test_idna(self):
+        support.requires('network')
         # these should all be successful
         socket.gethostbyname('испытание.python.org')
         socket.gethostbyname_ex('испытание.python.org')