From 05fe5fd2ae317e7f49a95caf9cd134c8a3d158a4 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 bba36421ace..a2ab684ebd6 100644 --- a/testing/test_skipping.py +++ b/testing/test_skipping.py @@ -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?" ] )