You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the report!
What the comment tries to say, is that is raises if the path points to a regular file. The case of a non-existent path seems not to be handled...
I'm traveling right now and will be back in a week, I will have a look then.
Describe the bug
As stated in the doc of scandir in pyfakefs, https://github.com/jmcgeheeiv/pyfakefs/blob/master/pyfakefs/fake_scandir.py#L186, scandir raises OSError if target is not directory, but acutally not.
run the above code: python main2.py, output:
My enviroment
The text was updated successfully, but these errors were encountered: