diff options
author | Daniel Stutzbach <daniel@stutzbachenterprises.com> | 2010-09-09 21:17:58 (GMT) |
---|---|---|
committer | Daniel Stutzbach <daniel@stutzbachenterprises.com> | 2010-09-09 21:17:58 (GMT) |
commit | 460ff3dd1c27b565fd5dd02edf43f97892cc7b79 (patch) | |
tree | 68d75cc0068ed96ee9503523dbc745d5256b940e | |
parent | 4c7c4219443d1a6b9aa1f310faabe101cdd09fb2 (diff) | |
download | cpython-460ff3dd1c27b565fd5dd02edf43f97892cc7b79.zip cpython-460ff3dd1c27b565fd5dd02edf43f97892cc7b79.tar.gz cpython-460ff3dd1c27b565fd5dd02edf43f97892cc7b79.tar.bz2 |
Skip socket tests that require the network, if the network resource is not enabled
-rw-r--r-- | Lib/test/test_socket.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index 81f9cdf..05b6ca7 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -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 |