Skip to content

Commit 57f8f5d

Browse files
authored
Mention basetemp in docs as a way to only keep last temp dir (#9607)
Closes #9599
1 parent b5a168a commit 57f8f5d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

doc/en/how-to/tmp_path.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ the system temporary directory. The base name will be ``pytest-NUM`` where
121121
``NUM`` will be incremented with each test run. Moreover, entries older
122122
than 3 temporary directories will be removed.
123123

124+
The number of entries currently cannot be changed, but using the ``--basetemp``
125+
option will remove the directory before every run, effectively meaning the temporary directories
126+
of only the most recent run will be kept.
127+
124128
You can override the default temporary directory setting like this:
125129

126130
.. code-block:: bash

0 commit comments

Comments
 (0)