Accept uppercase error message from PyPy
As seen on
MODIFY
test/with_dummyserver/test_https.py
test/with_dummyserver/test_https.py
@@ -336,7 +336,8 @@ class TestHTTPS(HTTPSDummyServerTestCase):
# not pyopenssl is injected
assert (
"No root certificates specified" in str(e.reason)
- or "certificate verify failed" in str(e.reason)
+ # PyPy sometimes uses all-caps here
+ or "certificate verify failed" in str(e.reason).lower()
or "invalid certificate chain" in str(e.reason)
), (
"Expected 'No root certificates specified', "

Accept uppercase error message from PyPy (#1699)

As seen on https://travis-ci.org/urllib3/urllib3/jobs/590289724