mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
#17564: skip test_bad_address unless the tests are run with -unetwork/-uall.
This commit is contained in:
parent
28421c6f62
commit
9098472299
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue