diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-03-29 23:28:40 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-03-29 23:28:40 (GMT) |
commit | 9098472299a18471f29b3ed471376be2d29178be (patch) | |
tree | 53b010cc2442574de0cf3e53a4d4f1c3c464ccba /Lib | |
parent | 28421c6f6264ed33aea31a161ebd77f935437d3f (diff) | |
download | cpython-9098472299a18471f29b3ed471376be2d29178be.zip cpython-9098472299a18471f29b3ed471376be2d29178be.tar.gz cpython-9098472299a18471f29b3ed471376be2d29178be.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 1eba14b..b1aa158 100644 --- a/Lib/test/test_urllib2_localnet.py +++ b/Lib/test/test_urllib2_localnet.py @@ -524,6 +524,11 @@ class TestUrlopen(unittest.TestCase): 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 |