[issue22764] object lifetime fragility in unittest tests

Robert Collins report at bugs.python.org
Fri Oct 31 00:43:20 CET 2014


Robert Collins added the comment:

I've done some experimentation. Yes, the updated test passes when the clear_frames call is removed in cPython 3.5

But the original test also passes when clear_frames is not called if one drops into pdb and steps through, which still fits the symptoms of having a loop.

The problem is then, that gc-only interpreters make no guarantees about lifetime of objects and this test needs a guarantee. As such I think conditional skipping is probably best.

----------

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


More information about the Python-bugs-list mailing list