Skip to content

Commit

Permalink
Merge pull request #7578 from nicoddemus/backport-7555
Browse files Browse the repository at this point in the history
[6.0.x] Warn about --basetemp removing the entire directory (#7555)
  • Loading branch information
nicoddemus committed Jul 29, 2020
2 parents b945b39 + 2d5b8a8 commit 1516780
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions doc/en/tmpdir.rst
Expand Up @@ -192,8 +192,13 @@ You can override the default temporary directory setting like this:
pytest --basetemp=mydir
When distributing tests on the local machine, ``pytest`` takes care to
configure a basetemp directory for the sub processes such that all temporary
.. warning::

The contents of ``mydir`` will be completely removed, so make sure to use a directory
for that purpose only.

When distributing tests on the local machine using ``pytest-xdist``, care is taken to
automatically configure a basetemp directory for the sub processes such that all temporary
data lands below a single per-test run basetemp directory.

.. _`py.path.local`: https://py.readthedocs.io/en/latest/path.html

0 comments on commit 1516780

Please sign in to comment.