-
-
Notifications
You must be signed in to change notification settings - Fork 473
Closed
Labels
Description
Describe the bug
When running coverage, it may create subcover_*.pth files that don't seem to be cleaned up afterwards.
To Reproduce
Python 3.13.6
b48ae28
tox -e py313
find -name 'subcover*.pth'
Note all the files left over in tox's site-packages.
Expected behavior
Coverage cleaning up files on exit, or — well — not writing them there.
Additional context
For us, it's a problem since after running the test suite, all these files are installed along with coverage. However, I can imagine that when running tests against an installed package (i.e. in packages that install tests and support running them after install), these files will be written directly to system site-packages.
Reactions are currently unavailable