forked from p15670423/monkey
Tests: Return Path object from patched_home_env() fixture
This commit is contained in:
parent
5ac574bd17
commit
a512fd947a
|
@ -2,7 +2,7 @@ import pytest
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def patched_home_env(monkeypatch, tmpdir):
|
def patched_home_env(monkeypatch, tmp_path):
|
||||||
monkeypatch.setenv("HOME", str(tmpdir))
|
monkeypatch.setenv("HOME", tmp_path)
|
||||||
|
|
||||||
return tmpdir
|
return tmp_path
|
||||||
|
|
Loading…
Reference in New Issue