diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-02-09 10:20:52 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-02-09 10:20:52 (GMT) |
commit | 44391481d7d302bbe1c9c9eb0518b6a45f21e0b9 (patch) | |
tree | 4f38a3f7621411a61d1c4a34e8a8e885ca69f8d3 /Lib/test/test_httplib.py | |
parent | 0c0d537b24f66cf16c76ce8f13c21de2ebdbdf44 (diff) | |
download | cpython-44391481d7d302bbe1c9c9eb0518b6a45f21e0b9.zip cpython-44391481d7d302bbe1c9c9eb0518b6a45f21e0b9.tar.gz cpython-44391481d7d302bbe1c9c9eb0518b6a45f21e0b9.tar.bz2 |
Issue #26045: Add UTF-8 suggestion to error in http.client
Based on patch by Guido van Rossum.
Diffstat (limited to 'Lib/test/test_httplib.py')
-rw-r--r-- | Lib/test/test_httplib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_httplib.py b/Lib/test/test_httplib.py index d809414..295b9fb 100644 --- a/Lib/test/test_httplib.py +++ b/Lib/test/test_httplib.py @@ -1042,7 +1042,7 @@ class OfflineTest(TestCase): # intentionally omitted for simplicity blacklist = {"HTTPMessage", "parse_headers"} for name in dir(client): - if name in blacklist: + if name.startswith("_") or name in blacklist: continue module_object = getattr(client, name) if getattr(module_object, "__module__", None) == "http.client": |