Skip to content

Commit 25128e3

Browse files
committed
improved test regex
1 parent 9bca909 commit 25128e3

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 .* must be in range .*"),
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 .*"),
143143
],
144144
)
145145
def test_date_parsing_errors(value, error):

0 commit comments

Comments
 (0)