mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Shorten lines.
This commit is contained in:
parent
3b8df2683d
commit
994bf4332f
2 changed files with 4 additions and 3 deletions
|
@ -720,7 +720,8 @@ class EventLoopTestsMixin:
|
|||
# incorrect server_hostname
|
||||
f_c = self.loop.create_connection(MyProto, host, port,
|
||||
ssl=sslcontext_client)
|
||||
with self.assertRaisesRegex(ssl.CertificateError,
|
||||
with self.assertRaisesRegex(
|
||||
ssl.CertificateError,
|
||||
"hostname '127.0.0.1' doesn't match 'localhost'"):
|
||||
self.loop.run_until_complete(f_c)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue