We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c15349 commit a28d595Copy full SHA for a28d595
doc/en/how-to/tmp_path.rst
@@ -109,6 +109,17 @@ rather than standard :class:`pathlib.Path` objects.
109
.. note::
110
These days, it is preferred to use ``tmp_path`` and ``tmp_path_factory``.
111
112
+ In order to help modernize old code bases, one can run pytest with the legacypath
113
+ plugin disabled:
114
+
115
+ .. code-block:: bash
116
117
+ pytest -p no:legacypath
118
119
+ This will trigger errors on tests using the legacy paths.
120
+ It can also be permanently set as part of the :confval:`addopts` parameter in the
121
+ config file.
122
123
See :fixture:`tmpdir <tmpdir>` :fixture:`tmpdir_factory <tmpdir_factory>`
124
API for details.
125
0 commit comments