It seems that the datafiles fixture is a py.path (well, a LocalPath) - does this have any functionality that pathlib.Path does not? If not, I think using pathlib's Path would be nice. The only function I've missed so far is is_file, but I haven't tested this much. Additionally, the py website says
Note: The ‘py’ library is in “maintenance mode” and so is not recommended for new projects. Please check out pathlib or pathlib2 for path operations.
It seems that the
datafilesfixture is apy.path(well, aLocalPath) - does this have any functionality thatpathlib.Pathdoes not? If not, I think usingpathlib'sPathwould be nice. The only function I've missed so far isis_file, but I haven't tested this much. Additionally, thepywebsite says