Skip to content

Commit 84d9326

Browse files
committed
Remove installation directory after sh installations
1 parent 289cd07 commit 84d9326

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_examples.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,8 @@ def _run_installer(
317317
check=check_subprocess,
318318
options=options,
319319
)
320+
if request and ON_CI:
321+
request.addfinalizer(lambda: shutil.rmtree(str(install_dir), ignore_errors=True))
320322
elif installer.suffix == ".pkg":
321323
if request and ON_CI:
322324
request.addfinalizer(lambda: shutil.rmtree(str(install_dir), ignore_errors=True))

0 commit comments

Comments
 (0)