summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2016-01-16 01:30:24 (GMT)
committerGregory P. Smith <greg@krypto.org>2016-01-16 01:30:24 (GMT)
commita3a58331a5e523e17eef964be3ee95ba1c45d977 (patch)
tree026f13134543f64f4b395619de849b7acb81b2fe /Lib/test/test_asyncio
parent56aae8f3043761853504193508d404280a3ec40b (diff)
parentc7b05a409d2835fa03acb5b7440f5551e725ec3d (diff)
downloadcpython-a3a58331a5e523e17eef964be3ee95ba1c45d977.zip
cpython-a3a58331a5e523e17eef964be3ee95ba1c45d977.tar.gz
cpython-a3a58331a5e523e17eef964be3ee95ba1c45d977.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.
Diffstat (limited to 'Lib/test/test_asyncio')
-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