]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
asyncio: ease the cert failed regex
authorYury Selivanov <yselivanov@sprymix.com>
Fri, 13 May 2016 19:42:39 +0000 (15:42 -0400)
committerYury Selivanov <yselivanov@sprymix.com>
Fri, 13 May 2016 19:42:39 +0000 (15:42 -0400)
Patch by Philip Jenvey

Lib/test/test_asyncio/test_events.py

index b3f9f0bf0667639c23261196b72253532d91dda1..4b4e3c0f2d801b8a7a0140fee310a5f17ba62292 100644 (file)
@@ -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