[Python-checkins] r84658 - python/branches/py3k/Lib/test/test_socket.py
daniel.stutzbach
python-checkins at python.org
Thu Sep 9 23:17:58 CEST 2010
Author: daniel.stutzbach
Date: Thu Sep 9 23:17:58 2010
New Revision: 84658
Log:
Skip socket tests that require the network, if the network resource is not enabled
Modified:
python/branches/py3k/Lib/test/test_socket.py
Modified: python/branches/py3k/Lib/test/test_socket.py
==============================================================================
--- python/branches/py3k/Lib/test/test_socket.py (original)
+++ python/branches/py3k/Lib/test/test_socket.py Thu Sep 9 23:17:58 2010
@@ -642,6 +642,8 @@
# 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
More information about the Python-checkins
mailing list