-
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
lstat succeeds that should fail (part of pattern with multiple other operations) #396
Comments
Substitute |
Ok, full list of essentially equivalent issues:
|
(produced using this script:
I think fixing this would actually remove a large portion of the failing tests I have, and it's a clear repeated pattern, so this might be a good one to tackle. |
(you can get a more verbose and full of extra stuff similar result doing:
at the command line; FYI if you ever start running TSTL tests much yourself. Generalize will often show if a bug is part of a general pattern. |
Ok, I may have a look tomorrow but can't promise anything. |
No rush, I'll just run the regression directory when you fix it, but it seems to cover a lot of the current Mac OS issues (how important it is, involving both symlinks and extra separators, I leave to you to judge; probably unimportant except for shutting up the tests). |
Ok, here is the behavior for these cases:
Looks like a bit of work... |
- used for handling of lstat(), remove() and rename() - see pytest-dev#396
- used for handling of lstat(), remove() and rename() - fixes incorrect results for islink() and lexists() under MacOS - see pytest-dev#396
- allow mkdir and makedirs under MacOS - see pytest-dev#396
This is a lot of special handling again for the different functionality, so I doubt that fixing this will help with many others, |
We can just drop testing extra path separators, of course, and these will all go away. |
I have no problem with that, though it means any interesting weirdness with path separators is going to be missed. I can't figure a good way to not always produce tons of these, but catch more "interesting" stuff (and I'm not sure what that would even be) |
- used for handling of lstat(), remove() and rename() - fixes incorrect results for islink() and lexists() under MacOS - see #396
- allow mkdir and makedirs under MacOS - see #396
While this took a while to fix because of the different cases, it is still faster than fixing each of these separately, so the generalization really helped here. |
OS raises
OSError: [Errno 2] No such file or directory: '/Volumes/ramdisk/test/alpha/'
The text was updated successfully, but these errors were encountered: