abalkin / pytest-leaks

A pytest plugin to trace resource leaks.
https://abalkin.github.io/pytest-leaks
Other
115 stars 4 forks source link

BUG: ensure fixture setup/teardown is done on each iteration #15

Closed pv closed 5 years ago

pv commented 5 years ago

Some extra code has to be included to make it work correctly.

Also, rewrite the subprocess tests using testdir.pytest_subprocess, which I missed earlier.

Closes: #7

pv commented 5 years ago

Another direct self-merge, more or less straightforward fix.

pv commented 5 years ago

This reveals a leak in numpy/conftest.py:add_np test fixture, but I guess that's Numpy's problem...