diff --git a/pandas/tests/indexes/period/test_to_timestamp.py b/pandas/tests/indexes/period/test_to_timestamp.py index 23787586cb3d3..0df7d873dcb7d 100644 --- a/pandas/tests/indexes/period/test_to_timestamp.py +++ b/pandas/tests/indexes/period/test_to_timestamp.py @@ -10,6 +10,7 @@ Timedelta, Timestamp, date_range, + offsets, period_range, ) import pandas._testing as tm @@ -99,3 +100,11 @@ def test_to_timestamp_1703(self): result = index.to_timestamp() assert result[0] == Timestamp("1/1/2012") + + def test_period_dateoffset_conversion(self): + # GH5091 + expected = date_range("1/1/2012", periods=4, freq=offsets.BQuarterEnd()) + per = expected.to_period() + result = per.to_timestamp() + + tm.assert_index_equal(result, expected)