Skip to content

Commit e02b82f

Browse files
committed
Replace Python 2 tmpdir removal workarounds
1 parent 1ff0924 commit e02b82f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/conftest.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,7 @@ def tmpdir_factory(request, tmpdir_factory):
129129
"""
130130
yield tmpdir_factory
131131
if not request.config.getoption("--keep-tmpdir"):
132-
shutil.rmtree(
133-
tmpdir_factory.getbasetemp(),
134-
ignore_errors=True,
135-
)
132+
tmpdir_factory.getbasetemp().remove(ignore_errors=True)
136133

137134

138135
@pytest.fixture

0 commit comments

Comments
 (0)