test_exc_chain_repr_without_traceback: use ids

This commit is contained in:
Daniel Hahler 2019-11-07 12:25:46 +01:00
parent 5c00226847
commit dd6cf7c172
1 changed files with 4 additions and 2 deletions

View File

@ -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",
),
],
)