-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
introduce deprecation warnings for legacy parametersets, fixes #2427 #2524
Conversation
changelog/2427.trivial
Outdated
@@ -0,0 +1 @@ | |||
introduce deprecation warnings for legacy marks based parametersets |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm this is a deprecation, I propose we create a separate section for it, what do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
will do
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i noted tha the removal category also has deprecations and switched to it
_pytest/deprecated.py
Outdated
) | ||
|
||
MARK_PARAMETERSET_UNPACKING = RemovedInPytest4Warning( | ||
"nesting parameter sets into marks is deprecated\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps this conveys the problem better?
Applying marks directly to parameters is deprecated, please use pytest.param(..., marks=...) instead.
For more details, see: https://docs.pytest.org/en/latest/parametrize.html
37c8bd8
to
0d0b01b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool!
No description provided.