rename tmpdir.rst to tmp_path.rst (#8905)

This commit is contained in:
Thomas Grainger 2021-07-14 16:53:27 +01:00 committed by GitHub
parent febb978651
commit 388691a205
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 7 additions and 6 deletions

0
changelog/8897.doc.rst Normal file
View File

View File

@ -28,7 +28,7 @@ How-to guides
how-to/fixtures
how-to/mark
how-to/parametrize
how-to/tmpdir
how-to/tmp_path
how-to/monkeypatch
how-to/doctest
how-to/cache

View File

@ -235,7 +235,7 @@ List the name ``tmp_path`` in the test function signature and ``pytest`` will lo
FAILED test_tmp_path.py::test_needsfiles - assert 0
1 failed in 0.12s
More info on temporary directory handling is available at :ref:`Temporary directories and files <tmpdir handling>`.
More info on temporary directory handling is available at :ref:`Temporary directories and files <tmp_path handling>`.
Find out what kind of builtin :ref:`pytest fixtures <fixtures>` exist with the command:

View File

@ -16,7 +16,7 @@ Core pytest functionality
fixtures
mark
parametrize
tmpdir
tmp_path
monkeypatch
doctest
cache

View File

@ -1,6 +1,6 @@
.. _`tmpdir handling`:
.. _tmpdir:
.. _`tmp_path handling`:
.. _tmp_path:
How to use temporary directories and files in tests
===================================================
@ -98,6 +98,7 @@ to save time:
See :ref:`tmp_path_factory API <tmp_path_factory factory api>` for details.
.. _`tmpdir and tmpdir_factory`:
.. _tmpdir:
The ``tmpdir`` and ``tmpdir_factory`` fixtures
---------------------------------------------------

View File

@ -607,7 +607,7 @@ Each recorded warning is an instance of :class:`warnings.WarningMessage`.
tmp_path
~~~~~~~~
:ref:`tmpdir`
:ref:`tmp_path`
.. autofunction:: _pytest.tmpdir.tmp_path()
:no-auto-options: