Replace example.com with pythontest.net in test_getcode of test_urllibnet
This commit is contained in:
parent
816a5ff3b2
commit
cacbc17d67
|
@ -111,7 +111,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"
|
||||
open_url = urllib.FancyURLopener().open(URL)
|
||||
try:
|
||||
code = open_url.getcode()
|
||||
|
|
Loading…
Reference in New Issue