We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0cb1f5 commit d29fa5eCopy full SHA for d29fa5e
tests/validators/test_list.py
@@ -354,7 +354,7 @@ def gen(error: bool):
354
raise RuntimeError('error')
355
yield 3
356
357
- v = SchemaValidator({'type': 'list', 'items_schema': {'type': 'int'}, 'allow_any_iter': True})
+ v = SchemaValidator({'type': 'list', 'items_schema': {'type': 'int'}})
358
assert v.validate_python(gen(False)) == [1, 2, 3]
359
with pytest.raises(ValidationError) as exc_info:
360
v.validate_python(gen(True))
0 commit comments