summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2016-01-16 01:30:42 (GMT)
committerGregory P. Smith <greg@krypto.org>2016-01-16 01:30:42 (GMT)
commitd7a815b115e0c64e3dfb569638081e1feffc29ba (patch)
tree95d3b330b9381ea4d95abfe9f135dbc54a48db52
parentccf44b04458522e96d2cb451d2c4874bc118b4cc (diff)
parenta3a58331a5e523e17eef964be3ee95ba1c45d977 (diff)
downloadcpython-d7a815b115e0c64e3dfb569638081e1feffc29ba.zip
cpython-d7a815b115e0c64e3dfb569638081e1feffc29ba.tar.gz
cpython-d7a815b115e0c64e3dfb569638081e1feffc29ba.tar.bz2
Make the error message regex more lenient so that it matches both
"certificate verify failed " and "CERTIFICATE_VERIFY_FAILED " as some SSL libraries use different text than OpenSSL.
-rw-r--r--Lib/test/test_asyncio/test_events.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py
index f174604..e72b86e 100644
--- a/Lib/test/test_asyncio/test_events.py
+++ b/Lib/test/test_asyncio/test_events.py
@@ -999,7 +999,7 @@ class EventLoopTestsMixin:
with mock.patch.object(self.loop, 'call_exception_handler'):
with test_utils.disable_logger():
with self.assertRaisesRegex(ssl.SSLError,
- 'certificate verify failed '):
+ '(?i)certificate.verify.failed '):
self.loop.run_until_complete(f_c)
# execute the loop to log the connection error
@@ -1033,7 +1033,7 @@ class EventLoopTestsMixin:
with mock.patch.object(self.loop, 'call_exception_handler'):
with test_utils.disable_logger():
with self.assertRaisesRegex(ssl.SSLError,
- 'certificate verify failed '):
+ '(?i)certificate.verify.failed '):
self.loop.run_until_complete(f_c)
# execute the loop to log the connection error