Fix test failure so it's no longer dependent on example.com.

This commit is contained in:
Larry Hastings 2017-01-01 21:49:09 -08:00
parent b6e2142b0c
commit 03fdeb786c
1 changed files with 1 additions and 1 deletions

View 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)