]> granicus.if.org Git - python/commitdiff
Issue #9777: test_idna requires the "network" resource
authorAntoine Pitrou <solipsis@pitrou.net>
Sat, 4 Sep 2010 18:50:35 +0000 (18:50 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Sat, 4 Sep 2010 18:50:35 +0000 (18:50 +0000)
Lib/test/test_socket.py

index 60a44dcc9fd01ef1fd4170a80bf0340896ca8500..2f6d00756e6a5a4ebd012b044e20a24dfad4254f 100644 (file)
@@ -642,6 +642,7 @@ class GeneralModuleTests(unittest.TestCase):
         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')