Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added changelog/8897.doc.rst
Empty file.
2 changes: 1 addition & 1 deletion doc/en/contents.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion doc/en/getting-started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion doc/en/how-to/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Core pytest functionality
fixtures
mark
parametrize
tmpdir
tmp_path
monkeypatch
doctest
cache
Expand Down
5 changes: 3 additions & 2 deletions doc/en/how-to/tmpdir.rst → doc/en/how-to/tmp_path.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

.. _`tmpdir handling`:
.. _tmpdir:
.. _`tmp_path handling`:
.. _tmp_path:

How to use temporary directories and files in tests
===================================================
Expand Down Expand Up @@ -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
---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion doc/en/reference/reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down