Skip to content

Commit

Permalink
tests: cleanup test dir with shutil.rmtree
Browse files Browse the repository at this point in the history
Co-authored-by: Yaroslav Halchenko <[email protected]>
  • Loading branch information
fermino and yarikoptic authored Dec 7, 2024
1 parent 8305af4 commit 0ebb71f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def cleanup_testdir(*extra_path):
if extra_path:
path = os.path.join(TESTDIR_NAME, *extra_path)

subprocess.run(["/bin/bash", "-c", f"rm -rf '{path}'"])
shutil.rmtree(path, ignore_errors=True)
except OSError:
pass

Expand Down

0 comments on commit 0ebb71f

Please sign in to comment.