Skip to content

Commit

Permalink
Delete tmpdir with rmtree to handle Unicode paths (#7572)
Browse files Browse the repository at this point in the history
  • Loading branch information
pradyunsg authored Jan 8, 2020
2 parents 5529bac + e2c3451 commit 0eaf0e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def tmpdir(request, tmpdir):
# This should prevent us from needing a multiple gigabyte temporary
# directory while running the tests.
if not request.config.getoption("--keep-tmpdir"):
tmpdir.remove(ignore_errors=True)
shutil.rmtree(six.text_type(tmpdir), ignore_errors=True)


@pytest.fixture(autouse=True)
Expand Down

0 comments on commit 0eaf0e6

Please sign in to comment.