Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jakkdl committed Sep 5, 2024
1 parent df5876d commit a240948
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/trio/_tests/test_timeouts.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,12 @@ async def test_timeout_deadline_on_entry(mock_clock: _core.MockClock) -> None:
assert cs.shield is False

# re-entering a _RelativeCancelScope should probably error, but it doesn't *have* to
with rcs as cs:
...
with pytest.raises(
RuntimeError,
match="^Each _RelativeCancelScope may only be used for a single 'with' block$",
):
with rcs as cs:
...


async def test_timeout_deadline_not_on_entry(mock_clock: _core.MockClock) -> None:
Expand Down

0 comments on commit a240948

Please sign in to comment.