Message226486
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. |
|
Date |
User |
Action |
Args |
2014-09-06 12:45:10 | ncoghlan | set | recipients:
+ ncoghlan, brett.cannon, pitrou, vstinner, zach.ware |
2014-09-06 12:45:10 | ncoghlan | set | messageid: <1410007510.24.0.635677942099.issue22166@psf.upfronthosting.co.za> |
2014-09-06 12:45:10 | ncoghlan | link | issue22166 messages |
2014-09-06 12:45:09 | ncoghlan | create | |
|