pytest-openfiles (pypi): Pytest plugin for detecting inadvertent open file handles
Keywords: detect|open|file|handle|psutil|pytest|py.test