From b2954e85d6448d449da5ff1c861b40d218ed5b1d Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Sat, 27 Mar 2021 10:33:48 -0300 Subject: [PATCH] Adjust message for Python 3.10 Now the message includes the class name ("Skip.__init__() got multiple..."). --- testing/test_skipping.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testing/test_skipping.py b/testing/test_skipping.py index bba36421a..878b1549f 100644 --- a/testing/test_skipping.py +++ b/testing/test_skipping.py @@ -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?" ] )