Skip to content

Commit 388691a

Browse files
authored
rename tmpdir.rst to tmp_path.rst (#8905)
1 parent febb978 commit 388691a

File tree

6 files changed

+7
-6
lines changed

6 files changed

+7
-6
lines changed

changelog/8897.doc.rst

Whitespace-only changes.

doc/en/contents.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ How-to guides
2828
how-to/fixtures
2929
how-to/mark
3030
how-to/parametrize
31-
how-to/tmpdir
31+
how-to/tmp_path
3232
how-to/monkeypatch
3333
how-to/doctest
3434
how-to/cache

doc/en/getting-started.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ List the name ``tmp_path`` in the test function signature and ``pytest`` will lo
235235
FAILED test_tmp_path.py::test_needsfiles - assert 0
236236
1 failed in 0.12s
237237
238-
More info on temporary directory handling is available at :ref:`Temporary directories and files <tmpdir handling>`.
238+
More info on temporary directory handling is available at :ref:`Temporary directories and files <tmp_path handling>`.
239239

240240
Find out what kind of builtin :ref:`pytest fixtures <fixtures>` exist with the command:
241241

doc/en/how-to/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Core pytest functionality
1616
fixtures
1717
mark
1818
parametrize
19-
tmpdir
19+
tmp_path
2020
monkeypatch
2121
doctest
2222
cache

doc/en/how-to/tmpdir.rst renamed to doc/en/how-to/tmp_path.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

2-
.. _`tmpdir handling`:
3-
.. _tmpdir:
2+
.. _`tmp_path handling`:
3+
.. _tmp_path:
44

55
How to use temporary directories and files in tests
66
===================================================
@@ -98,6 +98,7 @@ to save time:
9898
See :ref:`tmp_path_factory API <tmp_path_factory factory api>` for details.
9999

100100
.. _`tmpdir and tmpdir_factory`:
101+
.. _tmpdir:
101102

102103
The ``tmpdir`` and ``tmpdir_factory`` fixtures
103104
---------------------------------------------------

doc/en/reference/reference.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ Each recorded warning is an instance of :class:`warnings.WarningMessage`.
607607
tmp_path
608608
~~~~~~~~
609609

610-
:ref:`tmpdir`
610+
:ref:`tmp_path`
611611

612612
.. autofunction:: _pytest.tmpdir.tmp_path()
613613
:no-auto-options:

0 commit comments

Comments
 (0)