File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -199,6 +199,11 @@ def tmpdir(tmp_path: Path) -> py.path.local:
199
199
function invocation, created as a sub directory of the base temporary
200
200
directory.
201
201
202
+ By default, a new base temporary directory is created each test session,
203
+ and old bases are removed after 3 sessions, to aid in debugging. If
204
+ ``--basetemp`` is used then it is cleared each session. See :ref:`base
205
+ temporary directory`.
206
+
202
207
The returned object is a `py.path.local`_ path object.
203
208
204
209
.. _`py.path.local`: https://py.readthedocs.io/en/latest/path.html
@@ -212,6 +217,11 @@ def tmp_path(request: FixtureRequest, tmp_path_factory: TempPathFactory) -> Path
212
217
function invocation, created as a sub directory of the base temporary
213
218
directory.
214
219
220
+ By default, a new base temporary directory is created each test session,
221
+ and old bases are removed after 3 sessions, to aid in debugging. If
222
+ ``--basetemp`` is used then it is cleared each session. See :ref:`base
223
+ temporary directory`.
224
+
215
225
The returned object is a :class:`pathlib.Path` object.
216
226
"""
217
227
You can’t perform that action at this time.
0 commit comments