Skip to content

Commit 8a58ce1

Browse files
committed
[test_validation.py] Replace For Loop by Filter
1 parent 89a5536 commit 8a58ce1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/test_validation.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,7 @@ def test_standalone_property(self):
179179
prop = odml.Property()
180180
prop.type = ""
181181

182-
for err in validate(prop).errors:
183-
assert not err.is_error
182+
assert len(list(filter(lambda x: x.is_error, validate(prop).errors))) == 0
184183

185184
def test_section_init(self):
186185
"""

0 commit comments

Comments
 (0)