Skip to content
This repository was archived by the owner on Aug 19, 2025. It is now read-only.

Commit e96479a

Browse files
authored
fix json schema test (#104)
1 parent ef18d53 commit e96479a

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

tests/test_json_schema.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ def test_to_json_schema_complex_regular_expression():
166166
to_json_schema(field)
167167

168168
expected = (
169-
"Cannot convert regular expression with non-standard flags "
170-
"to JSON schema: re.IGNORECASE|re.UNICODE|re.VERBOSE"
169+
"Cannot convert regular expression with non-standard flags to JSON schema: "
171170
)
172171
assert str(exc_info.value).startswith(expected)

typesystem/schemas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def __new__(
7575
for field in fields.values():
7676
set_definitions(field, definitions)
7777

78-
#  Sort fields by their actual position in the source code,
78+
# Sort fields by their actual position in the source code,
7979
# using `Field._creation_counter`
8080
attrs["fields"] = dict(
8181
sorted(fields.items(), key=lambda item: item[1]._creation_counter)

0 commit comments

Comments
 (0)