#17564: merge with 3.3.

This commit is contained in:
Ezio Melotti 2013-03-30 01:33:46 +02:00
commit 8c0fc15c41
1 changed files with 5 additions and 0 deletions

View File

@ -546,6 +546,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(OSError,
# Given that both VeriSign and various ISPs have in
# the past or are presently hijacking various invalid