From 0fc1801d0d37cbe2a752bb5415f195792ebdb77f Mon Sep 17 00:00:00 2001 From: ykantor <8383983+ykantor@users.noreply.github.com> Date: Fri, 19 Oct 2018 05:54:29 +0200 Subject: [PATCH 1/2] Update tmpdir.rst --- doc/en/tmpdir.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/en/tmpdir.rst b/doc/en/tmpdir.rst index d8cd8b705..284f786bc 100644 --- a/doc/en/tmpdir.rst +++ b/doc/en/tmpdir.rst @@ -11,11 +11,11 @@ The ``tmp_path`` fixture .. versionadded:: 3.9 -You can use the ``tmpdir`` fixture which will +You can use the ``tmp_path`` fixture which will provide a temporary directory unique to the test invocation, created in the `base temporary directory`_. -``tmpdir`` is a ``pathlib/pathlib2.Path`` object. Here is an example test usage: +``tmp_path`` is a ``pathlib/pathlib2.Path`` object. Here is an example test usage: .. code-block:: python @@ -72,7 +72,7 @@ The ``tmp_path_factory`` fixture The ``tmp_path_facotry`` is a session-scoped fixture which can be used to create arbitrary temporary directories from any other fixture or test. -its intended to replace ``tmpdir_factory`` and returns :class:`pathlib.Path` instances. +It is intended to replace ``tmpdir_factory``, and returns :class:`pathlib.Path` instances. The 'tmpdir' fixture From dde147641ed2a7e81654146280be364cf09c05a4 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Fri, 19 Oct 2018 09:33:51 -0300 Subject: [PATCH 2/2] Fix linting --- doc/en/tmpdir.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/en/tmpdir.rst b/doc/en/tmpdir.rst index 284f786bc..ca26bb5c8 100644 --- a/doc/en/tmpdir.rst +++ b/doc/en/tmpdir.rst @@ -72,7 +72,7 @@ The ``tmp_path_factory`` fixture The ``tmp_path_facotry`` is a session-scoped fixture which can be used to create arbitrary temporary directories from any other fixture or test. -It is intended to replace ``tmpdir_factory``, and returns :class:`pathlib.Path` instances. +It is intended to replace ``tmpdir_factory``, and returns :class:`pathlib.Path` instances. The 'tmpdir' fixture