Remove further usages of Path(tmpdir)

This commit is contained in:
Matthias
2023-11-05 16:25:23 +01:00
parent 555f4b51e1
commit 5a3839320d
5 changed files with 33 additions and 33 deletions
+2 -2
View File
@@ -32,9 +32,9 @@ def test_create_userdata_dir(mocker, default_conf, caplog) -> None:
assert str(x) == str(Path("/tmp/bar"))
def test_create_userdata_dir_and_chown(mocker, tmpdir, caplog) -> None:
def test_create_userdata_dir_and_chown(mocker, tmp_path, caplog) -> None:
sp_mock = mocker.patch('subprocess.check_output')
path = Path(tmpdir / 'bar')
path = tmp_path / 'bar'
assert not path.is_dir()
x = create_userdata_dir(str(path), create_dir=True)