From fa0cd3782fbb819294b2e514dbac2fc741def9b1 Mon Sep 17 00:00:00 2001 From: Sam Doran Date: Thu, 8 Aug 2019 15:27:49 -0400 Subject: [PATCH] [stable-2.8] Move assertion in unit test inside loop (#60232) (cherry picked from commit aa717661af) Co-authored-by: Sam Doran --- .../units/module_utils/common/validation/test_check_type_int.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/units/module_utils/common/validation/test_check_type_int.py b/test/units/module_utils/common/validation/test_check_type_int.py index aacbc8849b..f07466dd18 100644 --- a/test/units/module_utils/common/validation/test_check_type_int.py +++ b/test/units/module_utils/common/validation/test_check_type_int.py @@ -31,4 +31,4 @@ def test_check_type_int_fail(): for case in test_cases: with pytest.raises(TypeError) as e: check_type_int(case) - assert 'cannot be converted to an int' in to_native(e) + assert 'cannot be converted to an int' in to_native(e)