summaryrefslogtreecommitdiff
path: root/src/_pytest/deprecated.py
diff options
context:
space:
mode:
authorRonny Pfannschmidt <opensource@ronnypfannschmidt.de>2020-03-29 20:30:16 +0200
committerRonny Pfannschmidt <opensource@ronnypfannschmidt.de>2020-03-30 21:53:07 +0200
commitf1d51ba1f57619e71cdf787ff1507be59a057c73 (patch)
tree134574592a87d64a8c9b4298a963ad75e55d6edd /src/_pytest/deprecated.py
parentce429381a74cb8c6cdaa49efd63973d44ff07813 (diff)
downloadpytest-f1d51ba1f57619e71cdf787ff1507be59a057c73.tar.gz
deprecate the pytest.collect module
changelog minimal unittest for collect module deprecations \!fixup - changelog typo
Diffstat (limited to 'src/_pytest/deprecated.py')
-rw-r--r--src/_pytest/deprecated.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/_pytest/deprecated.py b/src/_pytest/deprecated.py
index ee27b20ec..d84864618 100644
--- a/src/_pytest/deprecated.py
+++ b/src/_pytest/deprecated.py
@@ -56,6 +56,12 @@ COLLECT_DIRECTORY_HOOK = PytestDeprecationWarning(
"Please use collect_ignore in conftests or pytest_collection_modifyitems."
)
+PYTEST_COLLECT_MODULE = UnformattedWarning(
+ PytestDeprecationWarning,
+ "pytest.collect.{name} was moved to pytest.{name}\n"
+ "Please update to the new name.",
+)
+
TERMINALWRITER_WRITER = PytestDeprecationWarning(
"The TerminalReporter.writer attribute is deprecated, use TerminalReporter._tw instead at your own risk.\n"