Move assertion in unit test inside loop (#60232)
This commit is contained in:
parent
ed21aba442
commit
aa717661af
1 changed files with 1 additions and 1 deletions
|
@ -31,4 +31,4 @@ def test_check_type_int_fail():
|
||||||
for case in test_cases:
|
for case in test_cases:
|
||||||
with pytest.raises(TypeError) as e:
|
with pytest.raises(TypeError) as e:
|
||||||
check_type_int(case)
|
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…
Reference in a new issue