After the excellent brain-storming with @gaborbernat in https://github.com/pytest-dev/pytest/pull/2230#issuecomment-421454260, I came to realize we already depend now on pathlib2, so we could already introduce a new tmp_path fixture which works exactly like tmpdir, but returns a pathlib.Path instance.
Even if we don't ever adopt the pathlib-switch discussed in #2230, still seems like a good idea given that pathlib is part of the standard library, so makes perfect sense.
For completeness, we should include a path_factory, similar to tmpdir_factory.
Hi, I want to try to implement it.
It's one of my first github participation.
To make sure I understand correctly the request. you want to create a new fixture to create a tmpdir but to return pathlib.Path object instead of py.path
full stop - im currently porting the complete internals of tmpdir to pathlib - i will open a pr within the next 12 hours
Closing this as #3988 was merged.
Most helpful comment
Closing this as #3988 was merged.