Skip to content

Commit 50c7b5d

Browse files
authored
fix setenv prepend docs (#5658)
fix setenv prepend docs
2 parents d89c884 + 3bdcd6b commit 50c7b5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/en/monkeypatch.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ environment variable is missing, or to set multiple values to a known variable.
4646
:py:meth:`monkeypatch.setenv` and :py:meth:`monkeypatch.delenv` can be used for
4747
these patches.
4848

49-
4. Use ``monkeypatch.setenv("PATH", value, prepend=True)`` to modify ``$PATH``, and
49+
4. Use ``monkeypatch.setenv("PATH", value, prepend=os.pathsep)`` to modify ``$PATH``, and
5050
:py:meth:`monkeypatch.chdir` to change the context of the current working directory
5151
during a test.
5252

0 commit comments

Comments
 (0)