summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLarry Hastings <larry@hastings.org>2017-01-01 21:49:09 -0800
committerLarry Hastings <larry@hastings.org>2017-01-01 21:49:09 -0800
commitf8fb5f1a675ba1ea4d414668ff087c621761bd4f (patch)
treeccc3d2dc77e7d31677af65af60feebcfba339751
parente4019f090e7bba87680bf04fd79e330e6a79458d (diff)
downloadcpython-f8fb5f1a675ba1ea4d414668ff087c621761bd4f.tar.gz
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 42ebb6e60b..5331afc297 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)