Merge pull request #4201 from ykantor/patch-1

Update tmpdir.rst - very trivial
This commit is contained in:
Bruno Oliveira 2018-10-19 12:13:35 -03:00 committed by GitHub
commit c54cdd05b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -11,11 +11,11 @@ The ``tmp_path`` fixture
.. versionadded:: 3.9 .. 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, provide a temporary directory unique to the test invocation,
created in the `base temporary directory`_. 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 .. 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 The ``tmp_path_facotry`` is a session-scoped fixture which can be used
to create arbitrary temporary directories from any other fixture or test. 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 The 'tmpdir' fixture