Fix a test causing py38-lsof job failure
This commit is contained in:
parent
5cb5b1d0e7
commit
9e75ef1277
|
@ -40,11 +40,11 @@ class TestParseIni:
|
||||||
tmp_path: Path,
|
tmp_path: Path,
|
||||||
section: str,
|
section: str,
|
||||||
filename: str,
|
filename: str,
|
||||||
monkeypatch: MonkeyPatch,
|
|
||||||
) -> None:
|
) -> None:
|
||||||
sub = tmp_path / "sub"
|
sub = tmp_path / "sub"
|
||||||
sub.mkdir()
|
sub.mkdir()
|
||||||
monkeypatch.chdir(sub)
|
with MonkeyPatch.context() as mp:
|
||||||
|
mp.chdir(sub)
|
||||||
(tmp_path / filename).write_text(
|
(tmp_path / filename).write_text(
|
||||||
textwrap.dedent(
|
textwrap.dedent(
|
||||||
"""\
|
"""\
|
||||||
|
|
Loading…
Reference in New Issue