8000 Merge branch 'master' into improve-asyncio-cancellation · IBMZ-Linux-OSS-Python/anyio@ede1458 · GitHub
[go: up one dir, main page]

Skip to content

Commit ede1458

Browse files
committed
Merge branch 'master' into improve-asyncio-cancellation
2 parents 22a38ad + edbb44f commit ede1458

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/conftest.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@ def ca() -> CA:
5757
def server_context(ca: CA) -> SSLContext:
5858
server_context = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH)
5959
if hasattr(ssl, "OP_IGNORE_UNEXPECTED_EOF"):
60-
server_context.options ^= (
61-
ssl.OP_IGNORE_UNEXPECTED_EOF # type: ignore[attr-defined]
62-
)
60+
server_context.options ^= ssl.OP_IGNORE_UNEXPECTED_EOF
6361

6462
ca.issue_cert("localhost").configure_cert(server_context)
6563
return server_context
@@ -69,9 +67,7 @@ def server_context(ca: CA) -> SSLContext:
6967
def client_context(ca: CA) -> SSLContext:
7068
client_context = ssl.create_default_context(ssl.Purpose.SERVER_AUTH)
7169
if hasattr(ssl, "OP_IGNORE_UNEXPECTED_EOF"):
72-
client_context.options ^= (
73-
ssl.OP_IGNORE_UNEXPECTED_EOF # type: ignore[attr-defined]
74-
)
70+
client_context.options ^= ssl.OP_IGNORE_UNEXPECTED_EOF
7571

7672
ca.configure_trust(client_context)
7773
return client_context

0 commit comments

Comments
 (0)
0