aboutsummaryrefslogtreecommitdiffstats
path: root/tests/_autospec.py
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-11-26 14:07:29 -0800
committerGravatar MarkKoz <[email protected]>2020-11-26 14:07:29 -0800
commitd9f87cc867a93d5f2d14d16eaac86ccb5adef447 (patch)
treeb0a155073120368738731325cc34984371484f1b /tests/_autospec.py
parentHelp channels: remove how_to_get_help from excluded channels (diff)
Help channels: don't check if task is done before awaiting
Awaiting a done task is effectively a no-op, so it's redundant to check if the task is done before awaiting it. Furthermore, a task is also considered done if it was cancelled or an exception was raised. Therefore, avoiding awaiting in such cases doesn't allow the errors to be propagated and incorrectly allows the awaiter to keep executing.
Diffstat (limited to 'tests/_autospec.py')
0 files changed, 0 insertions, 0 deletions