Skip to content

Commit c5de6b7

Browse files
authored
fix(tests): update error messages to work on Python 3.14
1 parent 5163c1c commit c5de6b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/test_date.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ def test_date_set_slice_null():
137137
("1-3", "Bad date string: '1-3'"),
138138
("1", "Bad date string: '1'"),
139139
("", "Bad date string: ''"),
140-
("2021-2-99", "day is out of range for month"),
140+
("2021-2-99", "day is out of range for month|day 99 must be in range 1..28 for month 2 in year 2021"),
141141
("2021-99-1", "month must be in 1[.][.]12"),
142-
("10000-1-1", "year 10000 is out of range"),
142+
("10000-1-1", "year 10000 is out of range|year must be in 1..9999, not 10000"),
143143
],
144144
)
145145
def test_date_parsing_errors(value, error):

0 commit comments

Comments
 (0)