diff options
author | 2019-11-13 17:29:09 +0100 | |
---|---|---|
committer | 2019-11-13 17:29:09 +0100 | |
commit | 7f4829e9fab007690d48188f499bfcc1a7baa437 (patch) | |
tree | b402adeeaafd196fbe7260a02766f432526cf91e /tests/utils | |
parent | Prevent setting unknown attributes on d.py mocks (diff) |
Prevent await warnings for MockBot's create_task
Previously, the coroutine object passed to `MockBot.loop.create_task`
would trigger a `RuntimeWarning` for not being awaited as we do not
actually create a task for it. To prevent these warnings, coroutine
objects passed will now automatically be closed.
Diffstat (limited to 'tests/utils')
0 files changed, 0 insertions, 0 deletions