Move testdir to legacypath plugin

This commit is contained in:
Ran Benita
2021-10-16 10:28:45 +03:00
parent c2ece58aa0
commit 1df28a4450
7 changed files with 284 additions and 260 deletions

View File

@@ -446,3 +446,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