summaryrefslogtreecommitdiffstats
path: root/Lib/test/support
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/support
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/support')
-rw-r--r--Lib/test/support/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py
index 9b75a21..c0938d9 100644
--- a/Lib/test/support/__init__.py
+++ b/Lib/test/support/__init__.py
@@ -835,6 +835,10 @@ else:
# module name.
TESTFN = "{}_{}_tmp".format(TESTFN, os.getpid())
+# Define the URL of a dedicated HTTP server for the network tests.
+# The URL must use clear-text HTTP: no redirection to encrypted HTTPS.
+TEST_HTTP_URL = "http://www.pythontest.net"
+
# FS_NONASCII: non-ASCII character encodable by os.fsencode(),
# or None if there is no such character.
FS_NONASCII = None