fix #571: deprecate pytest_collect_directory as ... (#6847)

Deprecate pytest_collect_directory

Fix #571

Co-authored-by: Daniel Hahler <github@thequod.de>
This commit is contained in:
Ronny Pfannschmidt
2020-03-03 22:58:14 +01:00
committed by GitHub
parent b11bfa106c
commit 9fd71d6fe0
5 changed files with 12 additions and 1 deletions

View File

@@ -49,3 +49,8 @@ NO_PRINT_LOGS = PytestDeprecationWarning(
"--no-print-logs is deprecated and scheduled for removal in pytest 6.0.\n"
"Please use --show-capture instead."
)
COLLECT_DIRECTORY_HOOK = PytestDeprecationWarning(
"The pytest_collect_directory hook is not working.\n"
"Please use collect_ignore in conftests or pytest_collection_modifyitems."
)