Skip to content

Commit cc15dde

Browse files
authored
[skip changelog] Fix integration tests not deleting folders when test finishes (#1183)
1 parent 0425c95 commit cc15dde

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/conftest.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ def data_dir(tmpdir_factory):
5656
if platform.system() == "Windows":
5757
with tempfile.TemporaryDirectory() as tmp:
5858
yield tmp
59-
# shutil.rmtree(tmp, ignore_errors=True)
59+
shutil.rmtree(tmp, ignore_errors=True)
6060
else:
6161
data = tmpdir_factory.mktemp("ArduinoTest")
6262
yield str(data)
63-
# shutil.rmtree(data, ignore_errors=True)
63+
shutil.rmtree(data, ignore_errors=True)
6464

6565

6666
@pytest.fixture(scope="session")
@@ -81,7 +81,7 @@ def downloads_dir(tmpdir_factory, worker_id):
8181
lock.touch()
8282

8383
yield str(download_dir)
84-
# shutil.rmtree(download_dir, ignore_errors=True)
84+
shutil.rmtree(download_dir, ignore_errors=True)
8585

8686

8787
@pytest.fixture(scope="function")
@@ -93,7 +93,7 @@ def working_dir(tmpdir_factory):
9393
"""
9494
work_dir = tmpdir_factory.mktemp("ArduinoTestWork")
9595
yield str(work_dir)
96-
# shutil.rmtree(work_dir, ignore_errors=True)
96+
shutil.rmtree(work_dir, ignore_errors=True)
9797

9898

9999
@pytest.fixture(scope="function")

0 commit comments

Comments
 (0)