diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-03-29 23:32:45 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-03-29 23:32:45 (GMT) |
commit | f03aab7e519b2c801b193907086f064867ef53c1 (patch) | |
tree | de6d015cd8984d88e0682351f58fb0e67ec94b86 /Lib | |
parent | d5cdc94a26d033bb9899b42035093f6cb0cc3c99 (diff) | |
download | cpython-f03aab7e519b2c801b193907086f064867ef53c1.zip cpython-f03aab7e519b2c801b193907086f064867ef53c1.tar.gz cpython-f03aab7e519b2c801b193907086f064867ef53c1.tar.bz2 |
#17564: skip test_bad_address unless the tests are run with -unetwork/-uall.
Diffstat (limited to 'Lib')
-rw-r--r-- | 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 index ec34375..0802f69 100644 --- a/Lib/test/test_urllib2_localnet.py +++ b/Lib/test/test_urllib2_localnet.py @@ -489,6 +489,11 @@ class TestUrlopen(BaseTestCase): 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) + test_support.requires('network') self.assertRaises(IOError, # Given that both VeriSign and various ISPs have in # the past or are presently hijacking various invalid |