Fix test failure so it's no longer dependent on example.com.
This commit is contained in:
parent
b6e2142b0c
commit
03fdeb786c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue