Skip to content

Commit 3989a9b

Browse files
committed
Docs: monkeypatch.setenv does not accept bool
1 parent 6740fb9 commit 3989a9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_pytest/monkeypatch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def monkeypatch() -> Generator["MonkeyPatch", None, None]:
3636
monkeypatch.delattr(obj, name, raising=True)
3737
monkeypatch.setitem(mapping, name, value)
3838
monkeypatch.delitem(obj, name, raising=True)
39-
monkeypatch.setenv(name, value, prepend=False)
39+
monkeypatch.setenv(name, value, prepend=os.pathsep)
4040
monkeypatch.delenv(name, raising=True)
4141
monkeypatch.syspath_prepend(path)
4242
monkeypatch.chdir(path)

0 commit comments

Comments
 (0)