Skip to content

Commit

Permalink
try/pass windows tests clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
avishniakov authored Jul 11, 2024
1 parent 879bc65 commit 8715421
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@


import os
import sys
import shutil
from typing import Generator

Expand Down Expand Up @@ -97,4 +98,10 @@ def clean_zenml_client(

# remove all traces, and change working directory back to base path
os.chdir(orig_cwd)
shutil.rmtree(str(tmp_path))
if sys.platform == "win32":
try:
shutil.rmtree(str(tmp_path))
except:
pass
else:
shutil.rmtree(str(tmp_path))

0 comments on commit 8715421

Please sign in to comment.