Adjust message for Python 3.10

Now the message includes the class name ("Skip.__init__() got multiple...").
This commit is contained in:
Bruno Oliveira 2021-03-27 10:33:48 -03:00
parent 8c65a4f174
commit b2954e85d6
1 changed files with 2 additions and 1 deletions

View File

@ -876,7 +876,8 @@ class TestSkip:
result = pytester.runpytest()
result.stdout.fnmatch_lines(
[
"*TypeError: __init__() got multiple values for argument 'reason' - maybe you meant pytest.mark.skipif?"
"*TypeError: *__init__() got multiple values for argument 'reason'"
" - maybe you meant pytest.mark.skipif?"
]
)