[docs] [issue23890] assertRaises increases reference counter

Nick Coghlan report at bugs.python.org
Thu Feb 23 10:20:20 EST 2017


Nick Coghlan added the comment:

Victor's PR takes a more pragmatic approach to address this problem: rather than adding the ability to clear the frames for an arbitrary exception tree, it just uses a try/finally in a couple of key unittest function definitions to clear the offending circular references by setting them to None.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23890>
_______________________________________


More information about the docs mailing list