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 martin.panter
Recipients Spencer Brown, benjamin.peterson, ellingtonjp, martin.panter, ncoghlan, ned.deily, python-dev, rhettinger, xiang.zhang
Date 2016-11-22.09:28:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1479806893.96.0.329141801257.issue27100@psf.upfronthosting.co.za>
In-reply-to
Content
https://mail.python.org/pipermail/python-checkins/2016-November/147171.html

test_collections leaked [0, 0, 7] memory blocks, sum=7
test_contextlib leaked [38, 38, 38] references, sum=114
test_contextlib leaked [13, 12, 12] memory blocks, sum=37
test_descr leaked [164, 164, 164] references, sum=492
test_descr leaked [59, 59, 59] memory blocks, sum=177
test_functools leaked [0, 3, 1] memory blocks, sum=4
test_with leaked [37, 37, 37] references, sum=111
test_with leaked [13, 13, 13] memory blocks, sum=39

Command line was: ['./python', '-m', 'test.regrtest', '-uall', '-R', '3:3:/home/psf-users/antoine/refleaks/reflogWMjqsJ', '--timeout', '7200']

Looking at the code change, it looks like you aren’t releasing __enter__ if the __exit__ lookup fails.

A separate question: why not swap the “async with” __aenter__ and __aexit__ code at the same time?
History
Date User Action Args
2016-11-22 09:28:14martin.pantersetrecipients: + martin.panter, rhettinger, ncoghlan, benjamin.peterson, ned.deily, python-dev, xiang.zhang, Spencer Brown, ellingtonjp
2016-11-22 09:28:13martin.pantersetmessageid: <1479806893.96.0.329141801257.issue27100@psf.upfronthosting.co.za>
2016-11-22 09:28:13martin.panterlinkissue27100 messages
2016-11-22 09:28:13martin.pantercreate