[Python-checkins] cpython (2.7): Replace example.com with pythontest.net in test_getcode of test_urllibnet

berker.peksag python-checkins at python.org
Sat May 7 09:41:11 EDT 2016


https://hg.python.org/cpython/rev/806dfe65ddcf
changeset:   101256:806dfe65ddcf
branch:      2.7
parent:      101252:60de9c6188cc
user:        Berker Peksag <berker.peksag at gmail.com>
date:        Sat May 07 16:41:39 2016 +0300
summary:
  Replace example.com with pythontest.net in test_getcode of test_urllibnet

files:
  Lib/test/test_urllibnet.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/test/test_urllibnet.py b/Lib/test/test_urllibnet.py
--- a/Lib/test/test_urllibnet.py
+++ b/Lib/test/test_urllibnet.py
@@ -111,7 +111,7 @@
 
     def test_getcode(self):
         # test getcode() with the fancy opener to get 404 error codes
-        URL = "http://www.example.com/XXXinvalidXXX"
+        URL = "http://www.pythontest.net/XXXinvalidXXX"
         open_url = urllib.FancyURLopener().open(URL)
         try:
             code = open_url.getcode()

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list