We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2619ee3 commit 941587aCopy full SHA for 941587a
pandas/tseries/tests/test_timeseries.py
@@ -5369,7 +5369,13 @@ def test_to_datetime_format_integer(self):
5369
assert_series_equal(result, expected)
5370
5371
def test_to_datetime_format_microsecond(self):
5372
- val = '01-Apr-2011 00:00:01.978'
+
5373
+ # these are locale dependent
5374
+ import locale, calendar
5375
+ lang, _ = locale.getlocale()
5376
+ month_abbr = calendar.month_abbr[4]
5377
+ val = '01-{}-2011 00:00:01.978'.format(month_abbr)
5378
5379
format = '%d-%b-%Y %H:%M:%S.%f'
5380
result = to_datetime(val, format=format)
5381
exp = datetime.strptime(val, format)
0 commit comments