-
Notifications
You must be signed in to change notification settings - Fork 94
Open
Description
Describe the bug
In 3.14 with coverage pyfakefs intercepts file system calls leading to coverage throwing an error for NoSource. This is likely due to changes in coverage with 3.14 using sys.monitoring instead of sys.settrace() is what I have narrowed it down to.
How To Reproduce
Run unit tests that use pyfakefs with coverage[toml] with 3.14 using pytest 9.0.0 and when coverage tries to access the file system for branch coverage this will be triggered.
Example test failure in hatch https://github.com/pypa/hatch/actions/runs/19286882217/job/55149434317
Your environment
Please run the following in the environment where the problem happened and
paste the output.
python -c "import platform; print(platform.platform())"
python -c "import sys; print('Python', sys.version)"
python -c "from pyfakefs import __version__; print('pyfakefs', __version__)"
python -c "import pytest; print('pytest', pytest.__version__)"See link to Github Workflow for Tests in hatch.
ofek
Metadata
Metadata
Assignees
Labels
No labels