From 43664d784167011fabd5fb13398084504a6c4016 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Wed, 1 Aug 2018 07:34:08 -0300 Subject: [PATCH] Use ids for parametrized values in test_expected_value_type_error --- testing/python/approx.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/testing/python/approx.py b/testing/python/approx.py index c31b8bc5a..b1440adee 100644 --- a/testing/python/approx.py +++ b/testing/python/approx.py @@ -444,7 +444,15 @@ class TestApprox(object): ) @pytest.mark.parametrize( - "x", [None, "string", ["string"], [[1]], {"key": "string"}, {"key": {"key": 1}}] + "x", + [ + pytest.param(None), + pytest.param("string"), + pytest.param(["string"], id="nested-str"), + pytest.param([[1]], id="nested-list"), + pytest.param({"key": "string"}, id="dict-with-string"), + pytest.param({"key": {"key": 1}}, id="nested-dict"), + ], ) def test_expected_value_type_error(self, x): with pytest.raises(TypeError):