Skip to content

Commit 02aee02

Browse files
committed
test_ssl_client_basics: use RaisesGroup instead of raises.
1 parent dc74283 commit 02aee02

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/trio/_tests/test_ssl.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,9 @@ async def test_ssl_client_basics(client_ctx: SSLContext) -> None:
479479
sock, bad_client_ctx, server_hostname="trio-test-1.example.org"
480480
)
481481
assert not s.server_side
482-
with pytest.raises(BrokenResourceError) as excinfo:
482+
with pytest.RaisesGroup(
483+
BrokenResourceError, allow_unwrapped=True, flatten_subgroups=True
484+
) as excinfo:
483485
await s.send_all(b"x")
484486
assert isinstance(excinfo.value.__cause__, ssl.SSLError)
485487

0 commit comments

Comments
 (0)