-
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
py.path
vs pathlib.Path
#7
Comments
The reason is that the tmpdir fixture which is provided out of the box is a https://docs.pytest.org/en/latest/tmpdir.html |
While working on a PR for this, I found several differences between the methods of |
https://py.readthedocs.io/en/latest/path.html is in maintenance mode and recommends moving to |
@omarkohl Do you want (and would you accept a PR) that moves from I have been looking for an elegant way to use data files in my tests, and your library looks like it would do the trick perfectly, but I don't want to start using a dependency that has explicitly said it is in maintenance mode. Let me know! |
I would also like to see this but honestly it's mostly for aesthetic reasons (so long as the There is a fork, and this commit in particular: 9c42adf that implements this, but I haven't tested it. |
If someone wants to submit a pull request it could be released as a major version breaking change. |
It seems that the
datafiles
fixture is apy.path
(well, aLocalPath
) - does this have any functionality thatpathlib.Path
does not? If not, I think usingpathlib
'sPath
would be nice. The only function I've missed so far isis_file
, but I haven't tested this much. Additionally, thepy
website saysThe text was updated successfully, but these errors were encountered: