Adjust message for Python 3.10
Now the message includes the class name ("Skip.__init__() got multiple...").
This commit is contained in:
parent
8c65a4f174
commit
b2954e85d6
|
@ -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?"
|
||||
]
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue