Skip to content

Commit 1e66ed0

Browse files
mysterious-progressionmattreexnicoddemus
authored
Warn about --basetemp removing the entire directory (#7555)
Co-authored-by: mattreex <[email protected]> Co-authored-by: Bruno Oliveira <[email protected]>
1 parent 4962878 commit 1e66ed0

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

doc/en/tmpdir.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,13 @@ You can override the default temporary directory setting like this:
192192
193193
pytest --basetemp=mydir
194194
195-
When distributing tests on the local machine, ``pytest`` takes care to
196-
configure a basetemp directory for the sub processes such that all temporary
195+
.. warning::
196+
197+
The contents of ``mydir`` will be completely removed, so make sure to use a directory
198+
for that purpose only.
199+
200+
When distributing tests on the local machine using ``pytest-xdist``, care is taken to
201+
automatically configure a basetemp directory for the sub processes such that all temporary
197202
data lands below a single per-test run basetemp directory.
198203

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

0 commit comments

Comments
 (0)