Skip to content

Commit e99049a

Browse files
committed
Fix errors found in azure
1 parent 7c3a305 commit e99049a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pandas/_libs/tslibs/strptime.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,10 +304,10 @@ def array_strptime(object[:] values, object fmt,
304304
if week_of_year != -1:
305305
week_starts_Mon = True if week_of_year_start == 0 else False
306306
julian = _calc_julian_from_U_or_W(year, week_of_year, weekday,
307-
week_starts_Mon)
307+
week_starts_Mon)
308308
elif iso_year != -1 and iso_week != -1:
309309
year, julian = _calc_julian_from_V(iso_year, iso_week,
310-
weekday + 1)
310+
weekday + 1)
311311
# Cannot pre-calculate datetime_date() since can change in Julian
312312
# calculation and thus could have different value for the day of the wk
313313
# calculation.

pandas/tests/indexes/datetimes/test_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ def test_to_datetime_iso_week_year_format(self, s, _format, dt):
293293
])
294294
def test_ValueError_iso_week_year(self, msg, s, _format):
295295
# See GH#16607
296-
with pytest.raises(ValueError, message=msg):
296+
with pytest.raises(ValueError, match=msg):
297297
to_datetime(s, format=_format)
298298

299299
@pytest.mark.parametrize('tz', [None, 'US/Central'])

0 commit comments

Comments
 (0)