File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed
pandas/tests/indexes/period Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -240,19 +240,7 @@ def test_to_timestamp_monthly_resolution():
240240
241241
242242def test_to_timestamp_yearly_resolution ():
243- idx = PeriodIndex (["2011" , "2012" ], freq = "A" )
244- ts = idx .to_timestamp ()
245- assert ts .dtype == np .dtype ("datetime64[ns]" )
246-
247-
248- def test_to_timestamp_large_month_no_out_of_bounds ():
249- idx = PeriodIndex (["May 3000" ], freq = "M" )
250- ts = idx .to_timestamp ()
251- assert ts .dtype == np .dtype ("datetime64[ns]" )
252-
253-
254- def test_to_timestamp_large_year_no_out_of_bounds ():
255- idx = PeriodIndex (["3000" ], freq = "Y" )
243+ idx = PeriodIndex (["2011" , "2012" ], freq = "Y" )
256244 ts = idx .to_timestamp ()
257245 assert ts .dtype == np .dtype ("datetime64[ns]" )
258246
@@ -265,7 +253,7 @@ def test_to_timestamp_daily_resolution():
265253
266254def test_to_timestamp_nanosecond_resolution ():
267255 idx = PeriodIndex (
268- ["2011-01-01 00:00:00.000000001" , "2011-01-01 00:00:00.000000002" ], freq = "N "
256+ ["2011-01-01 00:00:00.000000001" , "2011-01-01 00:00:00.000000002" ], freq = "ns "
269257 )
270258 ts = idx .to_timestamp ()
271259 assert ts .dtype == np .dtype ("datetime64[ns]" )
You can’t perform that action at this time.
0 commit comments