Skip to content

Commit

Permalink
parameterize names
Browse files Browse the repository at this point in the history
  • Loading branch information
louispotok committed Jun 6, 2018
1 parent 333e866 commit 96ac31e
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions pandas/tests/series/test_analytics.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,12 +336,11 @@ def test_describe(self):
index=['count', 'unique', 'top', 'freq'])
tm.assert_series_equal(result, expected)

@pytest.mark.parametrize("tz", [None, "US/Eastern"])
def test_describe_dt(self, tz):
if tz is None:
name = "tz-naive"
else:
name = "tz-aware"
@pytest.mark.parametrize("tz, name", [
(None, "tz-naive"),
("US/Eastern", "tz-aware")
])
def test_describe_dt(self, tz, name):
start = Timestamp(2018, 1, 1)
end = Timestamp(2018, 1, 5)
s = Series(date_range(start, end, tz=tz), name=name)
Expand Down

0 comments on commit 96ac31e

Please sign in to comment.