Skip to content

Commit

Permalink
oops, shouldn't have strict included in str_schema specification
Browse files Browse the repository at this point in the history
  • Loading branch information
sydney-runkle committed Oct 14, 2023
1 parent 2df1672 commit 1911f01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/validators/test_string.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def test_coerce_numbers_to_str_disabled_in_strict_mode() -> None:
def test_coerce_numbers_to_str_raises_for_bool() -> None:
config = core_schema.CoreConfig(coerce_numbers_to_str=True)

v = SchemaValidator(core_schema.str_schema(strict=True), config)
v = SchemaValidator(core_schema.str_schema(), config)
with pytest.raises(ValidationError):
v.validate_python(True)
with pytest.raises(ValidationError):
Expand Down

0 comments on commit 1911f01

Please sign in to comment.