Deprecate pytest_cmdline_preparse

Close #8592 

PR #8956
This commit is contained in:
Simon K
2021-07-31 14:53:43 +01:00
committed by GitHub
parent 0fd0e2a27c
commit c27db3bd8e
5 changed files with 48 additions and 0 deletions

View File

@@ -53,6 +53,11 @@ WARNING_CAPTURED_HOOK = PytestDeprecationWarning(
"Please use pytest_warning_recorded instead."
)
WARNING_CMDLINE_PREPARSE_HOOK = PytestDeprecationWarning(
"The pytest_cmdline_preparse hook is deprecated and will be removed in a future release. \n"
"Please use pytest_load_initial_conftests hook instead."
)
FSCOLLECTOR_GETHOOKPROXY_ISINITPATH = PytestDeprecationWarning(
"The gethookproxy() and isinitpath() methods of FSCollector and Package are deprecated; "
"use self.session.gethookproxy() and self.session.isinitpath() instead. "