[Python-checkins] cpython (3.3): #17564: skip test_bad_address unless the tests are run with -unetwork/-uall.
ezio.melotti
python-checkins at python.org
Sat Mar 30 00:32:58 CET 2013
http://hg.python.org/cpython/rev/f668d2267303
changeset: 83004:f668d2267303
branch: 3.3
parent: 83002:d6fe31ce789d
user: Ezio Melotti <ezio.melotti at gmail.com>
date: Sat Mar 30 01:28:40 2013 +0200
summary:
#17564: skip test_bad_address unless the tests are run with -unetwork/-uall.
files:
Lib/test/test_urllib2_localnet.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_urllib2_localnet.py b/Lib/test/test_urllib2_localnet.py
--- a/Lib/test/test_urllib2_localnet.py
+++ b/Lib/test/test_urllib2_localnet.py
@@ -524,6 +524,11 @@
def test_bad_address(self):
# Make sure proper exception is raised when connecting to a bogus
# address.
+
+ # as indicated by the comment below, this might fail with some ISP,
+ # so we run the test only when -unetwork/-uall is specified to
+ # mitigate the problem a bit (see #17564)
+ support.requires('network')
self.assertRaises(IOError,
# Given that both VeriSign and various ISPs have in
# the past or are presently hijacking various invalid
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list