Skip to content

Commit

Permalink
fix more appvoyer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mroeschke committed Feb 28, 2018
1 parent dbbfbe7 commit 56d1f01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pandas/tests/scalar/timestamp/test_timestamp.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ def check(value, equal):
assert getattr(ts, end)

# GH 12806
@pytest.mark.skipif(not tm.get_locales(), reason='No available locales')
@pytest.mark.parametrize('data',
[Timestamp('2017-08-28 23:00:00'),
Timestamp('2017-08-28 23:00:00', tz='EST')])
@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())
def test_names(self, data, time_locale):
# GH 17354
# Test .weekday_name, .day_name(), .month_name
Expand Down
4 changes: 2 additions & 2 deletions pandas/tests/series/test_datetime_values.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,8 @@ def test_dt_accessor_no_new_attributes(self):
"You cannot add any new attribute"):
s.dt.xlabel = "a"

@pytest.mark.skipif(not tm.get_locales(), reason='No available locales')
@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())
def test_dt_accessor_datetime_name_accessors(self, time_locale):
# Test Monday -> Sunday and January -> December, in that sequence
if time_locale is None:
Expand Down

0 comments on commit 56d1f01

Please sign in to comment.