Skip to content

Commit b2954e8

Browse files
committed
Adjust message for Python 3.10
Now the message includes the class name ("Skip.__init__() got multiple...").
1 parent 8c65a4f commit b2954e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

testing/test_skipping.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,8 @@ def test_hello():
876876
result = pytester.runpytest()
877877
result.stdout.fnmatch_lines(
878878
[
879-
"*TypeError: __init__() got multiple values for argument 'reason' - maybe you meant pytest.mark.skipif?"
879+
"*TypeError: *__init__() got multiple values for argument 'reason'"
880+
" - maybe you meant pytest.mark.skipif?"
880881
]
881882
)
882883

0 commit comments

Comments
 (0)