Skip to content

Commit

Permalink
Adjust message for Python 3.10
Browse files Browse the repository at this point in the history
Now the message includes the class name ("Skip.__init__() got multiple...").
  • Loading branch information
nicoddemus committed Mar 27, 2021
1 parent 8c65a4f commit 05fe5fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion testing/test_skipping.py
Expand Up @@ -876,7 +876,8 @@ def test_hello():
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?"
]
)

Expand Down

0 comments on commit 05fe5fd

Please sign in to comment.