From 503c4b9f979d920456684daec226df68df2fa82f Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Fri, 5 Oct 2018 16:33:30 -0700 Subject: [PATCH] Fix parametrize warning in unit tests. (cherry picked from commit 1a28898a008b7c349bbd7a7604788678bc954e31) --- test/units/module_utils/test_distribution_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/units/module_utils/test_distribution_version.py b/test/units/module_utils/test_distribution_version.py index 8472db214e8..ca3c8016515 100644 --- a/test/units/module_utils/test_distribution_version.py +++ b/test/units/module_utils/test_distribution_version.py @@ -943,7 +943,7 @@ PRIVACY_POLICY_URL="http://www.intel.com/privacy" ] -@pytest.mark.parametrize("stdin, testcase", product([{}], TESTSETS), ids=lambda x: x['name'], indirect=['stdin']) +@pytest.mark.parametrize("stdin, testcase", product([{}], TESTSETS), ids=lambda x: x.get('name'), indirect=['stdin']) def test_distribution_version(am, mocker, testcase): """tests the distribution parsing code of the Facts class