Yury Selivanov <yseliva...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue32703> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com