Skip to content

Commit

Permalink
fix webdav cleanup on windows tests (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
ap-- authored May 13, 2023
1 parent 89687a0 commit 6727e92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upath/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ def webdav_server(tmp_path_factory):
def webdav_fixture(local_testdir, webdav_server):
webdav_path, webdav_url = webdav_server
if os.path.isdir(webdav_path):
os.rmdir(webdav_path)
shutil.rmtree(webdav_path, ignore_errors=True)
try:
shutil.copytree(local_testdir, webdav_path)
yield webdav_url
Expand Down

0 comments on commit 6727e92

Please sign in to comment.