[New-bugs-announce] [issue22764] object lifetime fragility in unittest tests

Robert Collins report at bugs.python.org
Thu Oct 30 10:57:45 CET 2014


New submission from Robert Collins:

test_assertRaises_frames_survival (unittest2.test.test_assertions.Test_Assertions
Depends on refcount behaviour to pass - adding a gc.collect() before the weakref checks is sufficient to fix things on pypy.

test_no_exception_leak (unittest2.test.test_case.Test_TestCase
similarly here adding a juidicious gc.collect solves the issue.

----------
messages: 230258
nosy: rbcollins
priority: normal
severity: normal
status: open
title: object lifetime fragility in unittest tests
versions: Python 3.5

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


More information about the New-bugs-announce mailing list