Skip to content

Commit

Permalink
Document missing deletion tests
Browse files Browse the repository at this point in the history
  • Loading branch information
richardsheridan authored and belm0 committed Jan 31, 2021
1 parent daf2b36 commit 8170b42
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion trio/_core/_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -2219,12 +2219,15 @@ def unrolled_run(runner, async_fn, args, host_uses_signal_set_wakeup_fd=False):
# which works for at least asyncio and curio.
runner.reschedule(task, exc)
task._next_send_fn = task.coro.throw
# prevent long-lived reference
# TODO: develop test for this deletion
del msg

if "after_task_step" in runner.instruments:
runner.instruments.call("after_task_step", task)
del GLOBAL_RUN_CONTEXT.task
# prevent long-lived task reference
# prevent long-lived references
# TODO: develop test for these deletions
del task, next_send, next_send_fn

except GeneratorExit:
Expand Down

0 comments on commit 8170b42

Please sign in to comment.