test_exc_chain_repr_without_traceback: use ids
This commit is contained in:
parent
5c00226847
commit
dd6cf7c172
|
@ -1229,13 +1229,15 @@ raise ValueError()
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
"reason, description",
|
"reason, description",
|
||||||
[
|
[
|
||||||
(
|
pytest.param(
|
||||||
"cause",
|
"cause",
|
||||||
"The above exception was the direct cause of the following exception:",
|
"The above exception was the direct cause of the following exception:",
|
||||||
|
id="cause",
|
||||||
),
|
),
|
||||||
(
|
pytest.param(
|
||||||
"context",
|
"context",
|
||||||
"During handling of the above exception, another exception occurred:",
|
"During handling of the above exception, another exception occurred:",
|
||||||
|
id="context",
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue