[Python-checkins] python/dist/src/Lib/test test_urllibnet.py, 1.6, 1.7

tim_one at users.sourceforge.net tim_one at users.sourceforge.net
Sat Sep 20 18:16:28 EDT 2003


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv28215/Lib/test

Modified Files:
	test_urllibnet.py 
Log Message:
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!


Index: test_urllibnet.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_urllibnet.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** test_urllibnet.py	17 Jul 2003 16:31:00 -0000	1.6
--- test_urllibnet.py	20 Sep 2003 22:16:26 -0000	1.7
***************
*** 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