Issue #9777: test_idna requires the "network" resource

This commit is contained in:
Antoine Pitrou 2010-09-04 18:50:35 +00:00
parent 1afb39a437
commit d9107aaded

View 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')