Skip to content

Commit

Permalink
coderabbitai
Browse files Browse the repository at this point in the history
  • Loading branch information
avishniakov authored Jul 11, 2024
1 parent 51daa37 commit 351c0fe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# permissions and limitations under the License.


import contextlib
import os
import sys
import shutil
Expand Down Expand Up @@ -101,9 +102,7 @@ def clean_zenml_client(
# remove all traces, and change working directory back to base path
os.chdir(orig_cwd)
if sys.platform == "win32":
try:
with contextlib.suppress(Exception):
shutil.rmtree(str(tmp_path))
except:
pass
else:
shutil.rmtree(str(tmp_path))

0 comments on commit 351c0fe

Please sign in to comment.