Produce a warning when unknown arguments are passed to pytest.param()

This commit is contained in:
Anthony Sottile
2019-04-12 08:04:27 -07:00
parent a9e850f749
commit 43e7401c91
6 changed files with 31 additions and 6 deletions

View File

@@ -93,3 +93,9 @@ PYTEST_WARNS_UNKNOWN_KWARGS = UnformattedWarning(
"pytest.warns() got unexpected keyword arguments: {args!r}.\n"
"This will be an error in future versions.",
)
PYTEST_PARAM_UNKNOWN_KWARGS = UnformattedWarning(
PytestDeprecationWarning,
"pytest.param() got unexpected keyword arguments: {args!r}.\n"
"This will be an error in future versions.",
)