Skip to content

Update test_period_range.py #34175

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
May 15, 2020
3 changes: 3 additions & 0 deletions pandas/tests/indexes/period/test_period_range.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ def test_construction_from_period(self):
result = period_range(start=start, end=end, freq="Q", name="foo")
tm.assert_index_equal(result, expected)

result = period_range(start=start, end=end, freq="Q", name="foo")
tm.assert_equal(result, result.values)

# empty
expected = PeriodIndex([], freq="W", name="foo")

Expand Down