Skip to content

Commit

Permalink
only has overload for Exception, not BaseException
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Aug 10, 2024
1 parent 990d580 commit bf7f7e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -1806,9 +1806,9 @@ async def test_ssl_context_creation_raises(exception: BaseException) -> None:

with mock.patch.object(
conn, "_make_ssl_context", side_effect=exception
), pytest.raises(
), pytest.raises( # type: ignore[call-overload]
exception
): # type: ignore[call-overload]
):
await conn._make_or_get_ssl_context(True)

assert isinstance(await conn._make_or_get_ssl_context(True), ssl.SSLContext)
Expand Down

0 comments on commit bf7f7e2

Please sign in to comment.