scipy / scipy_doctest

Floating-point aware doctesting
BSD 3-Clause "New" or "Revised" License
5 stars 4 forks source link

Local files copied to CWD are not deleted after doctesting #101

Closed Sheila-nk closed 6 months ago

Sheila-nk commented 12 months ago

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

comment by @ev-br