Skip to content

Commit

Permalink
test/_filedir: fix shutil.rmtree on Python < 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed May 11, 2020
1 parent db481c6 commit febf177
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/t/unit/test_unit_filedir.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def non_windows_testdir(self, request, bash):
if sys.platform.startswith("win"):
pytest.skip("Filenames not allowed on Windows")
tempdir = Path(tempfile.mkdtemp(prefix="bash-completion_filedir"))
request.addfinalizer(lambda: shutil.rmtree(tempdir))
request.addfinalizer(lambda: shutil.rmtree(str(tempdir)))
subdir = tempdir / 'a"b'
subdir.mkdir()
(subdir / "d").touch()
Expand Down

0 comments on commit febf177

Please sign in to comment.