From c858ad9b5ff283ebbdf58e95acf7f6439e459d29 Mon Sep 17 00:00:00 2001 From: Seth Michael Larson Date: Fri, 26 Jul 2019 12:01:11 -0500 Subject: Update test_connection.py --- test/test_connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.1