The test tests/test_refleaks.py:test_doctest checks for leaks, but it gives a false positive if the line >>> items.append(SomeClass()) that adds stuff to a global variable is replaced just by >>> SomeClass().
Interestingly, when run outside the pytest testdir framework it works:
The test
tests/test_refleaks.py:test_doctest
checks for leaks, but it gives a false positive if the line>>> items.append(SomeClass())
that adds stuff to a global variable is replaced just by>>> SomeClass()
.Interestingly, when run outside the pytest testdir framework it works:
Similar difference vs.
runpytest
andrunpytest_subprocess
appears also in our other test cases.