]> granicus.if.org Git - python/commitdiff
Fix test failure so it's no longer dependent on example.com.
authorLarry Hastings <larry@hastings.org>
Mon, 2 Jan 2017 05:49:09 +0000 (21:49 -0800)
committerLarry Hastings <larry@hastings.org>
Mon, 2 Jan 2017 05:49:09 +0000 (21:49 -0800)
Lib/test/test_urllibnet.py

index 42ebb6e60b5e83eb31a4c4469019ca10064fcb46..5331afc29797f65c4e5dfd0075076e2095eafbc0 100644 (file)
@@ -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)