From 635916052c35aadd9465ddf8a0517cdbbf5b2105 Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Wed, 24 Jul 2019 17:23:48 +0100 Subject: [PATCH 1/2] fix setenv prepend docs --- doc/en/monkeypatch.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/en/monkeypatch.rst b/doc/en/monkeypatch.rst index 6cd7da746..3248c5e1c 100644 --- a/doc/en/monkeypatch.rst +++ b/doc/en/monkeypatch.rst @@ -46,7 +46,7 @@ environment variable is missing, or to set multiple values to a known variable. :py:meth:`monkeypatch.setenv` and :py:meth:`monkeypatch.delenv` can be used for these patches. -4. Use ``monkeypatch.setenv("PATH", value, prepend=True)`` to modify ``$PATH``, and +4. Use ``monkeypatch.setenv("PATH", value, prepend=":")`` to modify ``$PATH``, and :py:meth:`monkeypatch.chdir` to change the context of the current working directory during a test. From 3bdcd6b4f3be6c940a7c0e6b3d6561d2d859fc7d Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Wed, 24 Jul 2019 20:49:31 +0100 Subject: [PATCH 2/2] Update doc/en/monkeypatch.rst --- doc/en/monkeypatch.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/en/monkeypatch.rst b/doc/en/monkeypatch.rst index 3248c5e1c..fd277d234 100644 --- a/doc/en/monkeypatch.rst +++ b/doc/en/monkeypatch.rst @@ -46,7 +46,7 @@ environment variable is missing, or to set multiple values to a known variable. :py:meth:`monkeypatch.setenv` and :py:meth:`monkeypatch.delenv` can be used for these patches. -4. Use ``monkeypatch.setenv("PATH", value, prepend=":")`` to modify ``$PATH``, and +4. Use ``monkeypatch.setenv("PATH", value, prepend=os.pathsep)`` to modify ``$PATH``, and :py:meth:`monkeypatch.chdir` to change the context of the current working directory during a test.