summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLarry Hastings <larry@hastings.org>2017-01-02 05:49:09 (GMT)
committerLarry Hastings <larry@hastings.org>2017-01-02 05:49:09 (GMT)
commit03fdeb786c2e0c1f3daa3e0b752098f372ebb6ba (patch)
tree246819ef16e75115067cd2a8856cca6aab7125d2
parentb6e2142b0cf96ffd081eff1f4f6d90074efa0ead (diff)
downloadcpython-03fdeb786c2e0c1f3daa3e0b752098f372ebb6ba.zip
cpython-03fdeb786c2e0c1f3daa3e0b752098f372ebb6ba.tar.gz
cpython-03fdeb786c2e0c1f3daa3e0b752098f372ebb6ba.tar.bz2
Fix test failure so it's no longer dependent on example.com.
-rw-r--r--Lib/test/test_urllibnet.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_urllibnet.py b/Lib/test/test_urllibnet.py
index 42ebb6e..5331afc 100644
--- a/Lib/test/test_urllibnet.py
+++ b/Lib/test/test_urllibnet.py
@@ -89,7 +89,7 @@ class urlopenNetworkTests(unittest.TestCase):
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"
with support.transient_internet(URL):
with self.assertWarns(DeprecationWarning):
open_url = urllib.request.FancyURLopener().open(URL)