Commit 460ff3dd authored by Daniel Stutzbach's avatar Daniel Stutzbach

Skip socket tests that require the network, if the network resource is not enabled

parent 4c7c4219
......@@ -642,6 +642,8 @@ class GeneralModuleTests(unittest.TestCase):
# only IP addresses are allowed
self.assertRaises(socket.error, socket.getnameinfo, ('mail.python.org',0), 0)
@unittest.skipUnless(support.is_resource_enabled('network'),
'network is not enabled')
def test_idna(self):
support.requires('network')
# these should all be successful
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment