Skip to content

Commit 43664d7

Browse files
committed
Use ids for parametrized values in test_expected_value_type_error
1 parent 2a2f888 commit 43664d7

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

testing/python/approx.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,15 @@ def test_foo():
444444
)
445445

446446
@pytest.mark.parametrize(
447-
"x", [None, "string", ["string"], [[1]], {"key": "string"}, {"key": {"key": 1}}]
447+
"x",
448+
[
449+
pytest.param(None),
450+
pytest.param("string"),
451+
pytest.param(["string"], id="nested-str"),
452+
pytest.param([[1]], id="nested-list"),
453+
pytest.param({"key": "string"}, id="dict-with-string"),
454+
pytest.param({"key": {"key": 1}}, id="nested-dict"),
455+
],
448456
)
449457
def test_expected_value_type_error(self, x):
450458
with pytest.raises(TypeError):

0 commit comments

Comments
 (0)