Skip to content

Commit

Permalink
remove await - it seems to timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert committed Dec 20, 2024
1 parent 1ec824c commit a0f33ee
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/trio/_core/_tests/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,15 +411,13 @@ def check(
# 1 for call_soon_task
check(expected_monitors=0, expected_readers=1, expected_writers=0)

with _core.monitor_kevent(a1.fileno(), select.KQ_FILTER_READ) as q:
with _core.monitor_kevent(a1.fileno(), select.KQ_FILTER_READ):
with (
pytest.raises(_core.BusyResourceError),
_core.monitor_kevent(a1.fileno(), select.KQ_FILTER_READ),
):
pass # pragma: no cover
check(expected_monitors=1, expected_readers=1, expected_writers=0)
b1.send(b"\x00")
assert len(await q.get_batch()) == 1

check(expected_monitors=0, expected_readers=1, expected_writers=0)

Expand Down

0 comments on commit a0f33ee

Please sign in to comment.