From: Raymond Hettinger Date: Sun, 21 Sep 2003 04:38:33 +0000 (+0000) Subject: Backport Tim's fix to SF #809915. X-Git-Tag: v2.3.1~32 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=08ae5901138d2d94f6ce8ba2da33031c835acaf0;p=thirdparty%2FPython%2Fcpython.git Backport Tim's fix to SF #809915. Creates a url that should always be invalid. --- diff --git a/Lib/test/test_urllibnet.py b/Lib/test/test_urllibnet.py index 0786e0665c31..80761df0fc9c 100644 --- a/Lib/test/test_urllibnet.py +++ b/Lib/test/test_urllibnet.py @@ -103,7 +103,14 @@ class urlopenNetworkTests(unittest.TestCase): # Make sure proper exception is raised when connecting to a bogus # address. self.assertRaises(IOError, - urllib.urlopen, "http://www.sadflkjsasadf.com/") + # SF patch 809915: In Sep 2003, VeriSign started + # highjacking invalid .com and .net addresses to + # boost traffic to their own site. This test + # started failing then. One hopes the .invalid + # domain will be spared to serve its defined + # purpose. + # urllib.urlopen, "http://www.sadflkjsasadf.com/") + urllib.urlopen, "http://www.python.invalid/") class urlretrieveNetworkTests(unittest.TestCase): """Tests urllib.urlretrieve using the network."""