You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
coverage report data written not collected when using contextlib.chdir with multiprocessing, Coverage writes data relative to the cwd, but I think the parent process should compute an absolute path to the coverage data directory and then proceed to use that in subprocesses
To Reproduce
How can we reproduce the problem? Please be specific. Don't link to a failing CI job. Answer the questions below:
What version of Python are you using? 3.12
What version of coverage.py shows the problem? The output of coverage debug sys is helpful. 7.6.1
What versions of what packages do you have installed? The output of pip freeze is helpful. just coverage
What commands should we run to reproduce the problem? Be specific. Include everything, even git clone, pip install, and so on. Explain like we're five!
Additional context
this is also causes problems when I'm collecting coverage, creating a tmp folder for my sut process to write to, then using chdir/multiprocessing and seeing that .coverage file in my tmp folder
The text was updated successfully, but these errors were encountered:
Describe the bug
coverage report data written not collected when using contextlib.chdir with multiprocessing, Coverage writes data relative to the cwd, but I think the parent process should compute an absolute path to the coverage data directory and then proceed to use that in subprocesses
To Reproduce
How can we reproduce the problem? Please be specific. Don't link to a failing CI job. Answer the questions below:
coverage debug sys
is helpful. 7.6.1pip freeze
is helpful. just coveragegit clone
,pip install
, and so on. Explain like we're five!Expected behavior
should see 100% coverage
Additional context
this is also causes problems when I'm collecting coverage, creating a tmp folder for my sut process to write to, then using chdir/multiprocessing and seeing that .coverage file in my tmp folder
The text was updated successfully, but these errors were encountered: