[Python-checkins] cpython (3.5): asyncio: ease the cert failed regex

yury.selivanov python-checkins at python.org
Fri May 13 15:43:11 EDT 2016


https://hg.python.org/cpython/rev/deb8e076a096
changeset:   101323:deb8e076a096
branch:      3.5
parent:      101321:148757a88f19
user:        Yury Selivanov <yselivanov at sprymix.com>
date:        Fri May 13 15:42:39 2016 -0400
summary:
  asyncio: ease the cert failed regex

Patch by Philip Jenvey

files:
  Lib/test/test_asyncio/test_events.py |  4 ++--
  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
--- a/Lib/test/test_asyncio/test_events.py
+++ b/Lib/test/test_asyncio/test_events.py
@@ -1002,7 +1002,7 @@
         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 @@
         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

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list