Skip to content

Commit

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


import contextlib
import os
import sys
import shutil
from typing import Generator

Expand Down Expand Up @@ -99,9 +99,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:
shutil.rmtree(str(tmp_path))
except:
pass
with contextlib.suppress(Exception):
shutil.rmtree(str(tmp_path))
else:
shutil.rmtree(str(tmp_path))

0 comments on commit 3dea7eb

Please sign in to comment.