-
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 failures in python 3.11 #677
Comments
Thanks - we haven't yet tried to run tests under 3.11, I will have a look later. These are all |
Ok, for my own reference: Have to look a bit more into this, maybe I will have a closer look over the weekend. |
Confirming that the only part really broken is the usage of skip modules that call pathlib functions, while the normal patching of |
- add Python 3.11 to CI tests - adapt the pathlib tests to work with Python 3.11 - adapt handling of pathlib in unfaked modules: need to ensure that the original os module is used, as pathlib has removed the accessor layer and now directly accesses os - add target_is_directory argument to symlink (ignored) - 'U' open mode is no longer allowed in Python 3.11 - closes pytest-dev#677
- add Python 3.11 to CI tests - adapt the pathlib tests to work with Python 3.11 - adapt handling of pathlib in unfaked modules: need to ensure that the original os module is used, as pathlib has removed the accessor layer and now directly accesses os - add target_is_directory argument to symlink (ignored) - 'U' open mode is no longer allowed in Python 3.11 - closes #677
…t the pathlib tests to work with Python 3.11 - adapt handling of pathlib in unfaked modules: need to ensure that the original os module is used, as pathlib has removed the accessor layer and now directly accesses os - add target_is_directory argument to symlink (ignored) - 'U' open mode is no longer allowed in Python 3.11 - closes #677
@AndrewAmmerlaan - it should be fixed in master now. I would appreciate if you could test this version - there may be more problems (or regressions from the fix) under Python 3.11 that don't show up in the tests. |
Great, thanks for looking into it. We currently have two direct dependencies of pyfakefs with python3.11 in Gentoo, I ran both their tests and the pyfakefs tests and found no failures. I'll let you know if I find any additional problems later. |
Thanks - good to have some real life tests before making a release! |
Describe the bug
With python 3.11 several tests are failing, some files that should not exist appear to exist, and some files that should exist return No such file or directory:
How To Reproduce
Run the tests with python3.11
Your environment
Please run the following and paste the output.
The text was updated successfully, but these errors were encountered: