From 04eb87e4ef3c821eddbefee83a9c009fea31af7f Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Fri, 13 May 2016 15:42:39 -0400 Subject: [PATCH] asyncio: ease the cert failed regex Patch by Philip Jenvey --- Lib/test/test_asyncio/test_events.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py index b3f9f0bf066..4b4e3c0f2d8 100644 --- a/Lib/test/test_asyncio/test_events.py +++ b/Lib/test/test_asyncio/test_events.py @@ -1002,7 +1002,7 @@ def test_create_server_ssl_verify_failed(self): 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 @@ def test_create_unix_server_ssl_verify_failed(self): 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