[issue32703] 'async with' somehow suppresses unawaited coroutine warnings
Yury Selivanov
report at bugs.python.org
Mon Jan 29 00:51:34 EST 2018
Yury Selivanov <yselivanov at gmail.com> added the comment:
Changing
async def main():
async with open_file():
pass
to
async def main():
c = open_file()
async with c:
pass
also makes it print the warning :)
Also I've made a test out of this snippet and running tests in refleak mode shows that there's indeed no refleak here.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32703>
_______________________________________
More information about the Python-bugs-list
mailing list