The tmpdir fixture provided by pytest has been deprecated and is
replaced by the tmp_path fixture.
Note that the tmpdir used to return an instance of LocalPath, a
class defined by pytest, but tmp_path returns an instance of
pathlib.Path from the standard library.
The
tmpdir
fixture provided bypytest
has been deprecated and is replaced by thetmp_path
fixture.Note that the
tmpdir
used to return an instance ofLocalPath
, a class defined bypytest
, buttmp_path
returns an instance ofpathlib.Path
from the standard library.