The copy_local_files function ensures local files defined by DTConfig's local_resources attribute are copied to the cwd where pytest carries out its tests.
The implemented pytest_unconfigure hook is supposed to ensure all copied local files are deleted when testing is complete.
However, on running doctests in Scipy, the local files copied to the cwd i.e: the build-install site-packages are not deleted.
we typically do not want to litter site-packages, and depending on how the library was installed, it may or may not even be user writeable
The
copy_local_files
function ensures local files defined by DTConfig'slocal_resources
attribute are copied to the cwd where pytest carries out its tests. The implementedpytest_unconfigure
hook is supposed to ensure all copied local files are deleted when testing is complete.However, on running doctests in Scipy, the local files copied to the cwd i.e: the build-install
site-packages
are not deleted.comment by @ev-br