Closed blueyed closed 5 years ago
This is meant to handle cwd=".", where isdir is True, but rmtree would fail.
isdir
rmtree
An alternative might be to check for cwd="." explicitly, and not join then.
Fixes https://github.com/pytest-dev/regendoc/commit/5457f54be6062973aced9b9def13cf0f706e0551#commitcomment-33020310.
JFI: seems like 0.6.1 (via PyPI tarball) handles cwd="." special already..
=> #8
This is meant to handle cwd=".", where
isdir
is True, butrmtree
would fail.An alternative might be to check for cwd="." explicitly, and not join then.
Fixes https://github.com/pytest-dev/regendoc/commit/5457f54be6062973aced9b9def13cf0f706e0551#commitcomment-33020310.