Merge pull request #9208 from bluetech/legacypath-plugin
Add legacypath plugin, move py.path stuff there
This commit is contained in:
@@ -460,3 +460,7 @@ def setup(app: "sphinx.application.Sphinx") -> None:
|
||||
)
|
||||
|
||||
sphinx.pycode.parser.VariableCommentPicker.is_final = patched_is_final
|
||||
|
||||
# legacypath.py monkey-patches pytest.Testdir in. Import the file so
|
||||
# that autodoc can discover references to it.
|
||||
import _pytest.legacypath # noqa: F401
|
||||
|
||||
@@ -638,7 +638,7 @@ tmpdir
|
||||
|
||||
:ref:`tmpdir and tmpdir_factory`
|
||||
|
||||
.. autofunction:: _pytest.tmpdir.tmpdir()
|
||||
.. autofunction:: _pytest.legacypath.LegacyTmpdirPlugin.tmpdir()
|
||||
:no-auto-options:
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user