Skip to content

Commit

Permalink
[skip changelog] Fix integration tests not deleting folders when test…
Browse files Browse the repository at this point in the history
… finishes (#1183)
  • Loading branch information
silvanocerza committed Feb 11, 2021
1 parent 0425c95 commit cc15dde
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/conftest.py
Expand Up @@ -56,11 +56,11 @@ def data_dir(tmpdir_factory):
if platform.system() == "Windows":
with tempfile.TemporaryDirectory() as tmp:
yield tmp
# shutil.rmtree(tmp, ignore_errors=True)
shutil.rmtree(tmp, ignore_errors=True)
else:
data = tmpdir_factory.mktemp("ArduinoTest")
yield str(data)
# shutil.rmtree(data, ignore_errors=True)
shutil.rmtree(data, ignore_errors=True)


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

yield str(download_dir)
# shutil.rmtree(download_dir, ignore_errors=True)
shutil.rmtree(download_dir, ignore_errors=True)


@pytest.fixture(scope="function")
Expand All @@ -93,7 +93,7 @@ def working_dir(tmpdir_factory):
"""
work_dir = tmpdir_factory.mktemp("ArduinoTestWork")
yield str(work_dir)
# shutil.rmtree(work_dir, ignore_errors=True)
shutil.rmtree(work_dir, ignore_errors=True)


@pytest.fixture(scope="function")
Expand Down

0 comments on commit cc15dde

Please sign in to comment.