summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSeth M. Larson <SethMichaelLarson@users.noreply.github.com>2018-04-23 12:38:32 -0500
committerGitHub <noreply@github.com>2018-04-23 12:38:32 -0500
commite3493837790e5cd59722585cf4c4339b9a15ff48 (patch)
treee3f5fc93428dce0d9968d65657f787a357bab09d /test
parentd3962ce93bc54f2de06c20c97724ac59eae79a63 (diff)
parent3c43a2b5ea38d36d393122f4b123c3d0cb86505e (diff)
downloadurllib3-e3493837790e5cd59722585cf4c4339b9a15ff48.tar.gz
Make tests for macOS + Python 3.7 required (#1375)
Address #1365 by fixing failing test on darwin + 3.7
Diffstat (limited to 'test')
-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 be50f6c4..dfc757d7 100644
--- a/test/test_connection.py
+++ b/test/test_connection.py
@@ -38,7 +38,7 @@ class TestConnection(object):
with mock.patch('urllib3.connection.log.error') as mock_log:
_match_hostname(cert, asserted_hostname)
except CertificateError as e:
- assert str(e) == "hostname 'bar' doesn't match 'foo'"
+ assert "hostname 'bar' doesn't match 'foo'" in str(e)
mock_log.assert_called_once_with(
'Certificate did not match expected hostname: %s. '
'Certificate: %s',