-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pytest fails if pyfakefs is installed with "AttributeError: module '_pytest' has no attribute 'pathlib'" #669
Comments
Downgrading seems to fix it, but I'm testing more.
pyfakefs 4.5.1 Running pytest worked |
Thanks for the report! That last version contained a fix for pytest 7, which had a change incompatible with the pyfakefs implementation, but it looks like I didn't test older pytest version properly. Which version of I will see if I can fix this later today ot tomorrow. |
@red8888 - I added a check for Can you please check if pyfakefs master works for you? |
If you can confirm that it works for you, I will make a patch release. |
Ok, made a new release (including tests with older pytest versions), so I consider this fixed. |
Describe the bug
As soon as I install pyfakefs pytest fails with the error:
AttributeError: module '_pytest' has no attribute 'pathlib'
This is even before importing and using it.
How To Reproduce
pip install pyfakefs
py.test
Your environment
Why would pyfakefs generate this error even if its not being imported anywhere yet?
The text was updated successfully, but these errors were encountered: