From: Larry Hastings Date: Mon, 2 Jan 2017 05:49:09 +0000 (-0800) Subject: Fix test failure so it's no longer dependent on example.com. X-Git-Tag: v3.4.6rc1~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=03fdeb786c2e0c1f3daa3e0b752098f372ebb6ba;p=python Fix test failure so it's no longer dependent on example.com. --- 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)