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 ncoghlan
Recipients brett.cannon, ncoghlan, pitrou, vstinner, zach.ware
Date 2014-09-06.12:45:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1410007510.24.0.635677942099.issue22166@psf.upfronthosting.co.za>
In-reply-to
Content
Yep, it looks like the mess with the reference cycles in the tracebacks was just a secondary problem: the real culprit was the internal cache keeping everything else alive.

Attached patch just adds clearing encodings._cache and the CPython internal cache to the ExceptionChainingTest.tearDown() method.

The latter is accomplised via gc.get_referrers() and popping the codec's name from any dict remaining in that list after clearing the known caches, so it will actually handle any hidden name based caches on any interpreter.
History
Date User Action Args
2014-09-06 12:45:10ncoghlansetrecipients: + ncoghlan, brett.cannon, pitrou, vstinner, zach.ware
2014-09-06 12:45:10ncoghlansetmessageid: <1410007510.24.0.635677942099.issue22166@psf.upfronthosting.co.za>
2014-09-06 12:45:10ncoghlanlinkissue22166 messages
2014-09-06 12:45:09ncoghlancreate