-
Notifications
You must be signed in to change notification settings - Fork 91
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
Test error on Ubuntu: Module-scoped fake filesystem fixture not found #687
Comments
Looks like I put this test into the wrong module. The test assumes that Thanks for the report - I will fix this in master, and then look at the other Pytho 3.11 related problems that have been reported before making a patch release. |
Please check if it works with current master. |
Thanks for your quick patch!
|
Ok, thank you - now I understood the problem, I fixed only half of it. I had an extra import for |
Ok, second try - please check again! |
…akefs from CI - fixes #687
Well, the tests do pass, but there's a strange exception at the end (
|
Ok, thank you - the same has been reported by another user, and I'm not sure yet was causes this (though I have an idea where this comes from). I won't have more time today to investigate this, will have another look tomorrow evening. I have made a patch release with the current version (mainly because of the Python 3.11 fix), and if I can fix this, I can probably make another one. Thanks for your fast responses - I much appreciate this kind of fast feedback! |
Thank you for your quick answers too! |
… cause such errors with some combinations of tests - should fix #687
I removed the offending test, will reopen the respective issue to handle this. The error should be gone now - I will publish a new patch release soon. Edit: done. |
Describe the bug
If I run
pytest -vv -x
, (-vv
is to get verbose output,-x
is to stoppytest
at first error) I get the following error:I followed the given advice (hence
pytest --fixtures pyfakefs/pytest_plugin.py
), but everything was green (it found the module-scoped fixture):First try was with older
pytest
(the focal packaged one, 4.6.9), but I have got the same result with latestpytest
(>7.0).I am not 100% sure this is a bug: maybe I haven't run the right tests? Or not the right way?
I have looked for the same test in your github actions (Latest Ubuntu, python3.8), but I have not found it.
How To Reproduce
Just run
pytest -vv -x
in the cloned repo (master branch)Your environment
The text was updated successfully, but these errors were encountered: