summaryrefslogtreecommitdiff
path: root/src/_pytest/deprecated.py
diff options
context:
space:
mode:
authorRan Benita <ran@unusedvar.com>2021-01-18 17:46:00 +0200
committerGitHub <noreply@github.com>2021-01-18 17:46:00 +0200
commit7f782c72ba157aaa26f74553ab328c898dab949c (patch)
tree7424e881d31481d78ada3929544e9204cccc409a /src/_pytest/deprecated.py
parentc9e9a599fe5231da90967b6f77c73e17c12740b7 (diff)
parent25e657bfc15aecd8fa8787a028ffc10fc9ac96d5 (diff)
downloadpytest-7f782c72ba157aaa26f74553ab328c898dab949c.tar.gz
Merge pull request #8242 from bluetech/deprecate-unittest-skip-collection
Deprecate raising unittest.SkipTest to skip tests during collection
Diffstat (limited to 'src/_pytest/deprecated.py')
-rw-r--r--src/_pytest/deprecated.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/_pytest/deprecated.py b/src/_pytest/deprecated.py
index 19b31d665..fa91f9097 100644
--- a/src/_pytest/deprecated.py
+++ b/src/_pytest/deprecated.py
@@ -64,6 +64,11 @@ STRICT_OPTION = PytestDeprecationWarning(
PRIVATE = PytestDeprecationWarning("A private pytest class or function was used.")
+UNITTEST_SKIP_DURING_COLLECTION = PytestDeprecationWarning(
+ "Raising unittest.SkipTest to skip tests during collection is deprecated. "
+ "Use pytest.skip() instead."
+)
+
# You want to make some `__init__` or function "private".
#