Mention basetemp in docs as a way to only keep last temp dir (#9607)

Closes #9599
This commit is contained in:
Gabor Szabo 2022-02-04 14:38:26 +02:00 committed by GitHub
parent b5a168aa0e
commit 57f8f5d2b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -121,6 +121,10 @@ the system temporary directory. The base name will be ``pytest-NUM`` where
``NUM`` will be incremented with each test run. Moreover, entries older
than 3 temporary directories will be removed.
The number of entries currently cannot be changed, but using the ``--basetemp``
option will remove the directory before every run, effectively meaning the temporary directories
of only the most recent run will be kept.
You can override the default temporary directory setting like this:
.. code-block:: bash