diff --git a/testing/code/test_excinfo.py b/testing/code/test_excinfo.py index 262d1d184..199b8716f 100644 --- a/testing/code/test_excinfo.py +++ b/testing/code/test_excinfo.py @@ -1229,13 +1229,15 @@ raise ValueError() @pytest.mark.parametrize( "reason, description", [ - ( + pytest.param( "cause", "The above exception was the direct cause of the following exception:", + id="cause", ), - ( + pytest.param( "context", "During handling of the above exception, another exception occurred:", + id="context", ), ], ) diff --git a/testing/test_assertion.py b/testing/test_assertion.py index b7b84528b..aac21a0df 100644 --- a/testing/test_assertion.py +++ b/testing/test_assertion.py @@ -358,7 +358,7 @@ class TestAssert_reprcompare: @pytest.mark.parametrize( ["left", "right", "expected"], [ - ( + pytest.param( [0, 1], [0, 2], """ @@ -368,8 +368,9 @@ class TestAssert_reprcompare: + [0, 2] ? ^ """, + id="lists", ), - ( + pytest.param( {0: 1}, {0: 2}, """ @@ -379,8 +380,9 @@ class TestAssert_reprcompare: + {0: 2} ? ^ """, + id="dicts", ), - ( + pytest.param( {0, 1}, {0, 2}, """ @@ -390,6 +392,7 @@ class TestAssert_reprcompare: + {0, 2} ? ^ """, + id="sets", ), ], )