summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_urllib.py
diff options
context:
space:
mode:
authorStéphane Wirtel <stephane@wirtel.be>2019-02-22 13:45:36 (GMT)
committerVictor Stinner <vstinner@redhat.com>2019-02-22 13:45:36 (GMT)
commita40681dd5db8deaf05a635eecb91498dac882aa4 (patch)
tree004360b7e66660aa058dce5e4ca0b3d1c78d8266 /Lib/test/test_urllib.py
parent3208880f1c72800bacf94a2045fcb0436702c7a1 (diff)
downloadcpython-a40681dd5db8deaf05a635eecb91498dac882aa4.zip
cpython-a40681dd5db8deaf05a635eecb91498dac882aa4.tar.gz
cpython-a40681dd5db8deaf05a635eecb91498dac882aa4.tar.bz2
bpo-36019: Use pythontest.net instead of example.com in network tests (GH-11941)
Diffstat (limited to 'Lib/test/test_urllib.py')
-rw-r--r--Lib/test/test_urllib.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_urllib.py b/Lib/test/test_urllib.py
index c292d74..2ac73b5 100644
--- a/Lib/test/test_urllib.py
+++ b/Lib/test/test_urllib.py
@@ -712,7 +712,7 @@ FF
with self.assertRaises(urllib.error.ContentTooShortError):
try:
- urllib.request.urlretrieve('http://example.com/',
+ urllib.request.urlretrieve(support.TEST_HTTP_URL,
reporthook=_reporthook)
finally:
self.unfakehttp()
@@ -729,7 +729,7 @@ FF
''')
with self.assertRaises(urllib.error.ContentTooShortError):
try:
- urllib.request.urlretrieve('http://example.com/')
+ urllib.request.urlretrieve(support.TEST_HTTP_URL)
finally:
self.unfakehttp()