summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeth Michael Larson <sethmichaellarson@gmail.com>2019-07-26 12:01:11 -0500
committerGitHub <noreply@github.com>2019-07-26 12:01:11 -0500
commitc858ad9b5ff283ebbdf58e95acf7f6439e459d29 (patch)
treeec01f0955cb4627b4d18b8103a1a3ecc88c493cc
parent809af5e61b0d9adf0ef411b1699331f14dcd2604 (diff)
downloadurllib3-cert-log-warning.tar.gz
Update test_connection.pycert-log-warning
-rw-r--r--test/test_connection.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_connection.py b/test/test_connection.py
index 5969a089..77794898 100644
--- a/test/test_connection.py
+++ b/test/test_connection.py
@@ -32,7 +32,7 @@ class TestConnection(object):
cert = {"subjectAltName": [("DNS", "foo")]}
asserted_hostname = "bar"
try:
- with mock.patch("urllib3.connection.log.error") as mock_log:
+ with mock.patch("urllib3.connection.log.warning") as mock_log:
_match_hostname(cert, asserted_hostname)
except CertificateError as e:
assert "hostname 'bar' doesn't match 'foo'" in str(e)