Skip to content

Commit dbbfbe7

Browse files
committed
modify pytest param for appvoyer
1 parent 498897c commit dbbfbe7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/indexes/datetimes/test_misc.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ def test_datetimeindex_accessors(self):
242242
assert [d.weekofyear for d in dates] == expected
243243

244244
# GH 12806
245-
@pytest.mark.skipif(not tm.get_locales(), reason='No available locales')
246-
@pytest.mark.parametrize('time_locale', tm.get_locales() + [None])
245+
@pytest.mark.parametrize('time_locale', [
246+
None] if tm.get_locales() is None else [None] + tm.get_locales())
247247
def test_datetime_name_accessors(self, time_locale):
248248
# Test Monday -> Sunday and January -> December, in that sequence
249249
if time_locale is None:

0 commit comments

Comments
 (0)