We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 498897c commit dbbfbe7Copy full SHA for dbbfbe7
pandas/tests/indexes/datetimes/test_misc.py
@@ -242,8 +242,8 @@ def test_datetimeindex_accessors(self):
242
assert [d.weekofyear for d in dates] == expected
243
244
# GH 12806
245
- @pytest.mark.skipif(not tm.get_locales(), reason='No available locales')
246
- @pytest.mark.parametrize('time_locale', tm.get_locales() + [None])
+ @pytest.mark.parametrize('time_locale', [
+ None] if tm.get_locales() is None else [None] + tm.get_locales())
247
def test_datetime_name_accessors(self, time_locale):
248
# Test Monday -> Sunday and January -> December, in that sequence
249
if time_locale is None:
0 commit comments