File tree Expand file tree Collapse file tree 6 files changed +7
-6
lines changed Expand file tree Collapse file tree 6 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ How-to guides
28
28
how-to/fixtures
29
29
how-to/mark
30
30
how-to/parametrize
31
- how-to/tmpdir
31
+ how-to/tmp_path
32
32
how-to/monkeypatch
33
33
how-to/doctest
34
34
how-to/cache
Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ List the name ``tmp_path`` in the test function signature and ``pytest`` will lo
235
235
FAILED test_tmp_path.py::test_needsfiles - assert 0
236
236
1 failed in 0.12s
237
237
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 >`.
239
239
240
240
Find out what kind of builtin :ref: `pytest fixtures <fixtures >` exist with the command:
241
241
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ Core pytest functionality
16
16
fixtures
17
17
mark
18
18
parametrize
19
- tmpdir
19
+ tmp_path
20
20
monkeypatch
21
21
doctest
22
22
cache
Original file line number Diff line number Diff line change 1
1
2
- .. _`tmpdir handling` :
3
- .. _ tmpdir :
2
+ .. _`tmp_path handling` :
3
+ .. _ tmp_path :
4
4
5
5
How to use temporary directories and files in tests
6
6
===================================================
@@ -98,6 +98,7 @@ to save time:
98
98
See :ref: `tmp_path_factory API <tmp_path_factory factory api >` for details.
99
99
100
100
.. _`tmpdir and tmpdir_factory` :
101
+ .. _tmpdir :
101
102
102
103
The ``tmpdir `` and ``tmpdir_factory `` fixtures
103
104
---------------------------------------------------
Original file line number Diff line number Diff line change @@ -607,7 +607,7 @@ Each recorded warning is an instance of :class:`warnings.WarningMessage`.
607
607
tmp_path
608
608
~~~~~~~~
609
609
610
- :ref: `tmpdir `
610
+ :ref: `tmp_path `
611
611
612
612
.. autofunction :: _pytest.tmpdir.tmp_path()
613
613
:no-auto-options:
You can’t perform that action at this time.
0 commit comments