aboutsummaryrefslogtreecommitdiffstats
path: root/tests/base.py
diff options
context:
space:
mode:
authorGravatar Sebastiaan Zeeff <[email protected]>2019-11-13 17:29:09 +0100
committerGravatar Sebastiaan Zeeff <[email protected]>2019-11-13 17:29:09 +0100
commit7f4829e9fab007690d48188f499bfcc1a7baa437 (patch)
treeb402adeeaafd196fbe7260a02766f432526cf91e /tests/base.py
parentPrevent 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/base.py')
0 files changed, 0 insertions, 0 deletions