Merge pull request #8874 from adamjstewart/monkeypatch/setenv

Docs: monkeypatch.setenv does not accept bool
This commit is contained in:
Anthony Sottile
2021-07-09 11:38:25 -04:00
committed by GitHub
3 changed files with 3 additions and 3 deletions

View File

@@ -36,7 +36,7 @@ def monkeypatch() -> Generator["MonkeyPatch", None, None]:
monkeypatch.delattr(obj, name, raising=True)
monkeypatch.setitem(mapping, name, value)
monkeypatch.delitem(obj, name, raising=True)
monkeypatch.setenv(name, value, prepend=False)
monkeypatch.setenv(name, value, prepend=None)
monkeypatch.delenv(name, raising=True)
monkeypatch.syspath_prepend(path)
monkeypatch.chdir(path)