-
Notifications
You must be signed in to change notification settings - Fork 9
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
mode bits are not copied #11
Comments
When listing the executable status of the /usr/bin/hello file we expect a regular non-executable file, this is confusing but is due to an upstream bug in pytest-datafiles: omarkohl/pytest-datafiles#11 Save time pondering this mishap in the future by adding a comment beside the confusing test case.
When listing the executable status of the /usr/bin/hello file we expect a regular non-executable file, this is confusing but is due to an upstream bug in pytest-datafiles: omarkohl/pytest-datafiles#11 Save time pondering this mishap in the future by adding a comment beside the confusing test case.
When listing the executable status of the /usr/bin/hello file we expect a regular non-executable file, this is confusing but is due to an upstream bug in pytest-datafiles: omarkohl/pytest-datafiles#11 Save time pondering this mishap in the future by adding a comment beside the confusing test case.
That is indeed unfortunate. My gut reaction would be to set 'mode' and 'stat' to True.
But that would of course be kind of a breaking change in case someone is relying on the current behaviour. To copy as exactly as possible seems more natural to me and not copying the mode bits was definitely never intended. Any thoughts anyone? |
When listing the executable status of the /usr/bin/hello file we expect a regular non-executable file, this is confusing but is due to an upstream bug in pytest-datafiles: omarkohl/pytest-datafiles#11 Save time pondering this mishap in the future by adding a comment beside the confusing test case.
When listing the executable status of the /usr/bin/hello file we expect a regular non-executable file, this is confusing but is due to an upstream bug in pytest-datafiles: omarkohl/pytest-datafiles#11 Save time pondering this mishap in the future by adding a comment beside the confusing test case.
When listing the executable status of the /usr/bin/hello file we expect a regular non-executable file, this is confusing but is due to an upstream bug in pytest-datafiles: omarkohl/pytest-datafiles#11 Save time pondering this mishap in the future by adding a comment beside the confusing test case.
Mode bits are not copied by default (https://py.readthedocs.io/en/latest/path.html#py._path.local.LocalPath.copy). This results in unexpected modes in testing. It would be useful if there were some way to use the datafiles fixture and copy modes.
The text was updated successfully, but these errors were encountered: