[pypy-issue] Issue #2611: Bad test isolation : finalizers running too late in app-tests (pypy/pypy)

Ronan Lamy issues-reply at bitbucket.org
Thu Jul 20 13:10:37 EDT 2017


New issue 2611: Bad test isolation : finalizers running too late in app-tests
https://bitbucket.org/pypy/pypy/issues/2611/bad-test-isolation-finalizers-running-too

Ronan Lamy:

In some circumstances, objects that are created in some app-level test may only get finalized in the next app-level test. For instance, running `py.test pypy/module/cpyext/test/test_module.py -vv -s -k 'functionality or reload' --no-tb` on commit e2b16d8 shows that the finalizer for the `Example` object created in `test_functionality` only runs at the start of `test_reload` (look for the position of `cpyext: missing slot wrapper wrap_del` in the test's output.

So far,  I only confirmed the issue in cpyext tests on py3.5, but I guess that all app-tests are affected.

Responsible: rlamy


More information about the pypy-issue mailing list