Skip to content

Commit 56d1f01

Browse files
committed
fix more appvoyer tests
1 parent dbbfbe7 commit 56d1f01

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pandas/tests/scalar/timestamp/test_timestamp.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,11 @@ def check(value, equal):
9797
assert getattr(ts, end)
9898

9999
# GH 12806
100-
@pytest.mark.skipif(not tm.get_locales(), reason='No available locales')
101100
@pytest.mark.parametrize('data',
102101
[Timestamp('2017-08-28 23:00:00'),
103102
Timestamp('2017-08-28 23:00:00', tz='EST')])
104-
@pytest.mark.parametrize('time_locale', tm.get_locales() + [None])
103+
@pytest.mark.parametrize('time_locale', [
104+
None] if tm.get_locales() is None else [None] + tm.get_locales())
105105
def test_names(self, data, time_locale):
106106
# GH 17354
107107
# Test .weekday_name, .day_name(), .month_name

pandas/tests/series/test_datetime_values.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,8 @@ def test_dt_accessor_no_new_attributes(self):
276276
"You cannot add any new attribute"):
277277
s.dt.xlabel = "a"
278278

279-
@pytest.mark.skipif(not tm.get_locales(), reason='No available locales')
280-
@pytest.mark.parametrize('time_locale', tm.get_locales() + [None])
279+
@pytest.mark.parametrize('time_locale', [
280+
None] if tm.get_locales() is None else [None] + tm.get_locales())
281281
def test_dt_accessor_datetime_name_accessors(self, time_locale):
282282
# Test Monday -> Sunday and January -> December, in that sequence
283283
if time_locale is None:

0 commit comments

Comments
 (0)