-
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
os.scandir does not work with filedescriptor #723
Comments
Actually it should support this, at least the code suggests that. Can you please add a callstack? I also don't understand where it takes this uid from - is this a path in the fake filesystem? |
And can you please show a reproducible example? Your snippet does not look like real code, as it uses an invalid string notation. |
Here is an example that fails for me:
It throws error: Here is full stacktrace:
|
Thank you, I will try to reproduce this. |
- the check for the flag was incorrect - fixes pytest-dev#723
- the check for the flag was incorrect - change PyPy version in CI to 3.7 - fixes pytest-dev#723
- the check for the flag was incorrect - change PyPy version in CI to 3.7 - fixes #723
…s incorrect - change PyPy version in CI to 3.7 - fixes #723
Shall be fixed in master now. That was actually a bug I had accidentally introduced myself a couple of years ago, that never came up so far - good catch, thanks! |
Describe the bug
I'm using a code that is reading directory content in such a way:
This code should return content of
/test-volume
directory. I get:[Errno 20] Not a directory in the fake filesystem: '/test-volume/df01d42e-1f05-41fa-9ef3-8463b03ff8f0'
It would be nice to add support for file descriptors or at least throw NotImplementedError when path is int.
How To Reproduce
Shown above.
Your environment
The text was updated successfully, but these errors were encountered: