We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
test_ssl_client_basics
RaisesGroup
raises
1 parent dc74283 commit 02aee02Copy full SHA for 02aee02
1 file changed
src/trio/_tests/test_ssl.py
@@ -479,7 +479,9 @@ async def test_ssl_client_basics(client_ctx: SSLContext) -> None:
479
sock, bad_client_ctx, server_hostname="trio-test-1.example.org"
480
)
481
assert not s.server_side
482
- with pytest.raises(BrokenResourceError) as excinfo:
+ with pytest.RaisesGroup(
483
+ BrokenResourceError, allow_unwrapped=True, flatten_subgroups=True
484
+ ) as excinfo:
485
await s.send_all(b"x")
486
assert isinstance(excinfo.value.__cause__, ssl.SSLError)
487
0 commit comments