projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6e2142
)
Fix test failure so it's no longer dependent on example.com.
author
Larry Hastings
<larry@hastings.org>
Mon, 2 Jan 2017 05:49:09 +0000
(21:49 -0800)
committer
Larry Hastings
<larry@hastings.org>
Mon, 2 Jan 2017 05:49:09 +0000
(21:49 -0800)
Lib/test/test_urllibnet.py
patch
|
blob
|
history
diff --git
a/Lib/test/test_urllibnet.py
b/Lib/test/test_urllibnet.py
index 42ebb6e60b5e83eb31a4c4469019ca10064fcb46..5331afc29797f65c4e5dfd0075076e2095eafbc0 100644
(file)
--- 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)