Skip to content

Commit

Permalink
Fix test coverage for deprecated call_soon_queue_size
Browse files Browse the repository at this point in the history
  • Loading branch information
njsmith committed Sep 15, 2017
1 parent d716003 commit e2df899
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions trio/_core/tests/test_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

0 comments on commit e2df899

Please sign in to comment.