summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_httplib.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-08-11 13:26:59 (GMT)
committerGitHub <noreply@github.com>2020-08-11 13:26:59 (GMT)
commitfabd7bb8e0450f16ed5c5c0ad575aa413d65712d (patch)
tree697881ab8dd38a990ebd68a018a20f08c2ab3c67 /Lib/test/test_httplib.py
parent1d541c25c8019f7a0b80b3e1b437abe171e40b65 (diff)
downloadcpython-fabd7bb8e0450f16ed5c5c0ad575aa413d65712d.zip
cpython-fabd7bb8e0450f16ed5c5c0ad575aa413d65712d.tar.gz
cpython-fabd7bb8e0450f16ed5c5c0ad575aa413d65712d.tar.bz2
bpo-41521: Replace whitelist/blacklist with allowlist/denylist (GH-21822)
Automerge-Triggered-By: @tiran
Diffstat (limited to 'Lib/test/test_httplib.py')
-rw-r--r--Lib/test/test_httplib.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_httplib.py b/Lib/test/test_httplib.py
index 3431bb8..a3f268b 100644
--- a/Lib/test/test_httplib.py
+++ b/Lib/test/test_httplib.py
@@ -1434,9 +1434,9 @@ class OfflineTest(TestCase):
expected = {"responses"} # White-list documented dict() object
# HTTPMessage, parse_headers(), and the HTTP status code constants are
# intentionally omitted for simplicity
- blacklist = {"HTTPMessage", "parse_headers"}
+ denylist = {"HTTPMessage", "parse_headers"}
for name in dir(client):
- if name.startswith("_") or name in blacklist:
+ if name.startswith("_") or name in denylist:
continue
module_object = getattr(client, name)
if getattr(module_object, "__module__", None) == "http.client":