From a0f33ee3b49854d5db9ffe709b772950d22a797b Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Fri, 20 Dec 2024 10:52:47 +0000 Subject: [PATCH] remove await - it seems to timeout --- src/trio/_core/_tests/test_io.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/trio/_core/_tests/test_io.py b/src/trio/_core/_tests/test_io.py index 723221919..379daa025 100644 --- a/src/trio/_core/_tests/test_io.py +++ b/src/trio/_core/_tests/test_io.py @@ -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)