mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
asyncio: ease the cert failed regex
Patch by Philip Jenvey
This commit is contained in:
parent
7657f6ba21
commit
04eb87e4ef
1 changed files with 2 additions and 2 deletions
|
@ -1002,7 +1002,7 @@ class EventLoopTestsMixin:
|
|||
with mock.patch.object(self.loop, 'call_exception_handler'):
|
||||
with test_utils.disable_logger():
|
||||
with self.assertRaisesRegex(ssl.SSLError,
|
||||
'(?i)certificate.verify.failed '):
|
||||
'(?i)certificate.verify.failed'):
|
||||
self.loop.run_until_complete(f_c)
|
||||
|
||||
# execute the loop to log the connection error
|
||||
|
@ -1036,7 +1036,7 @@ class EventLoopTestsMixin:
|
|||
with mock.patch.object(self.loop, 'call_exception_handler'):
|
||||
with test_utils.disable_logger():
|
||||
with self.assertRaisesRegex(ssl.SSLError,
|
||||
'(?i)certificate.verify.failed '):
|
||||
'(?i)certificate.verify.failed'):
|
||||
self.loop.run_until_complete(f_c)
|
||||
|
||||
# execute the loop to log the connection error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue