After the excellent brain-storming with @gaborbernat in #2230 (comment), 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.
After the excellent brain-storming with @gaborbernat in #2230 (comment), I came to realize we already depend now on
pathlib2, so we could already introduce a newtmp_pathfixture which works exactly liketmpdir, but returns apathlib.Pathinstance.Even if we don't ever adopt the
pathlib-switch discussed in #2230, still seems like a good idea given thatpathlibis part of the standard library, so makes perfect sense.