@pytest.mark.parameterize
gives misleading error messages
#39
Labels
@pytest.mark.parameterize
gives misleading error messages
#39
The following code fails with a misleading error message:
The error message is:
The error message is misleading because the cause is actually that
parameterize
has a different spelling to theparametrize
spelling expected by pytest.This is an easy mistake to make and, with the above error, it can be difficult to understand how to solve the problem. According to various dictionaries (e.g. https://www.merriam-webster.com/dictionary/parameterize), the verbs "parameterize" and "parametrize" are variants. A quick Google search turns up 1.97 million hits for "parameterize" versus 763,000 hits for "parametrize".
For reference, using
pytest
by itself (withoutipytest
) gives a much more useful error message:The text was updated successfully, but these errors were encountered: