-
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
FakeOsModule.walk return a (Path, list, list) generator instead of a (str, list, list) when a pathlib object is used as input #915
Comments
Good catch, thanks! Should be easy to reproduce and to fix. |
- used to return a Path object for the top dir instead of a string - fixes pytest-dev#915
- used to return a Path object for the top dir instead of a string - fixes pytest-dev#915
- used to return a Path object for the top dir instead of a string - fixes #915
Should be fixed in main now, please check! |
Didn't think it would be this fast to be patched ! Thanks a lot ! I've tested the main branch, it is now working as expected, thanks again for maintaining this library ! <3 |
You are welcome! As I wrote, this one was easy... There is another open issue which I want to get fixed, after that I'll make a new patch release. |
FYI: A new patch release is out. |
Hi !
I encountered this while creating tests in pytest on my Windows machine.
Describe the bug
method FakeOsModule.walk of <pyfakefs.fake_os.FakeOsModule> is returning a Path object as first element instead of a string as the os.walk method do.
How To Reproduce
Your environment
platform.platform: Windows-10-10.0.22621-SP0
sys.version: Python 3.11.6 (tags/v3.11.6:8b6ee5b, Oct 2 2023, 14:57:12) [MSC v.1935 64 bit (AMD64)]
pyfakefs: 5.3.1
pytest: 7.4.3
If you need more information, don't hesitate
The text was updated successfully, but these errors were encountered: