This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author yselivanov
Recipients asvetlov, giampaolo.rodola, ncoghlan, njs, yselivanov
Date 2018-01-29.05:51:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1517205094.51.0.467229070634.issue32703@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2018-01-29 05:51:34yselivanovsetrecipients: + yselivanov, ncoghlan, giampaolo.rodola, njs, asvetlov
2018-01-29 05:51:34yselivanovsetmessageid: <1517205094.51.0.467229070634.issue32703@psf.upfronthosting.co.za>
2018-01-29 05:51:34yselivanovlinkissue32703 messages
2018-01-29 05:51:34yselivanovcreate