Skip to content

Commit 755bc5c

Browse files
committed
Avoid timezone-loss warning
1 parent a16c900 commit 755bc5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/arrays/test_datetimelike.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def test_take_fill_valid(self, datetime_index, tz_naive_fixture):
137137

138138
with pytest.raises(ValueError):
139139
# fill_value Period invalid
140-
arr.take([-1, 1], allow_fill=True, fill_value=now.to_period('D'))
140+
arr.take([-1, 1], allow_fill=True, fill_value=pd.Period('2014Q1'))
141141

142142
tz = None if dti.tz is not None else 'US/Eastern'
143143
now = pd.Timestamp.now().tz_localize(tz)

0 commit comments

Comments
 (0)