[Python-checkins] python/dist/src/Lib/test test_urllibnet.py, 1.6,
1.6.6.1
rhettinger at users.sourceforge.net
rhettinger at users.sourceforge.net
Sun Sep 21 00:38:35 EDT 2003
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv18088
Modified Files:
Tag: release23-maint
test_urllibnet.py
Log Message:
Backport Tim's fix to SF #809915.
Creates a url that should always be invalid.
Index: test_urllibnet.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_urllibnet.py,v
retrieving revision 1.6
retrieving revision 1.6.6.1
diff -C2 -d -r1.6 -r1.6.6.1
*** test_urllibnet.py 17 Jul 2003 16:31:00 -0000 1.6
--- test_urllibnet.py 21 Sep 2003 04:38:33 -0000 1.6.6.1
***************
*** 104,108 ****
# address.
self.assertRaises(IOError,
! urllib.urlopen, "http://www.sadflkjsasadf.com/")
class urlretrieveNetworkTests(unittest.TestCase):
--- 104,115 ----
# address.
self.assertRaises(IOError,
! # 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):
More information about the Python-checkins
mailing list