summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_urllibnet.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2003-09-20 22:16:26 (GMT)
committerTim Peters <tim.peters@gmail.com>2003-09-20 22:16:26 (GMT)
commit0aab0020573771e224ebc0e94b2c5adf565fb4f6 (patch)
tree7a43aecd7a038128b081fdf83c22c4b9e7a937eb /Lib/test/test_urllibnet.py
parentc7c516aa5140d255f18ffd2e8569434f0904f5db (diff)
downloadcpython-0aab0020573771e224ebc0e94b2c5adf565fb4f6.zip
cpython-0aab0020573771e224ebc0e94b2c5adf565fb4f6.tar.gz
cpython-0aab0020573771e224ebc0e94b2c5adf565fb4f6.tar.bz2
SF patch 809915: Fix bogus address to hopefully always break.
test_bad_address(): Recover from that VeriSign thought it would boost its corporate coffers to start resolving http://www.sadflkjsasadf.com/. Bugfix candidate -- although the bug is more VeriSign's than Python's!
Diffstat (limited to 'Lib/test/test_urllibnet.py')
-rw-r--r--Lib/test/test_urllibnet.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/Lib/test/test_urllibnet.py b/Lib/test/test_urllibnet.py
index 0786e06..80761df 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."""