[stable-2.8] Move assertion in unit test inside loop (#60232)

(cherry picked from commit aa717661af)

Co-authored-by: Sam Doran <sdoran@redhat.com>
pull/60332/head
Sam Doran 6 years ago committed by Toshio Kuratomi
parent 5d3f0fe02c
commit fa0cd3782f

@ -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)

Loading…
Cancel
Save