From e2df899a19850932cea0d4b12dddde323ddd8078 Mon Sep 17 00:00:00 2001 From: "Nathaniel J. Smith" Date: Fri, 15 Sep 2017 13:54:20 -0700 Subject: [PATCH] Fix test coverage for deprecated call_soon_queue_size --- trio/_core/tests/test_run.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/trio/_core/tests/test_run.py b/trio/_core/tests/test_run.py index 9f3a80fa95..87df8a6213 100644 --- a/trio/_core/tests/test_run.py +++ b/trio/_core/tests/test_run.py @@ -1936,7 +1936,9 @@ async def noop(): assert not nursery.zombies record = [] + assert _core.current_statistics().call_soon_queue_size == 0 call_soon = _core.current_call_soon_thread_and_signal_safe() call_soon(record.append, 1) + assert _core.current_statistics().call_soon_queue_size == 1 await wait_all_tasks_blocked() assert record == [1]