diff options
| -rw-r--r-- | test/test_connection.py | 2 |
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) |
