@@ -262,22 +262,22 @@ def test_setitem_float_labels():
262262 assert_series_equal (s , tmp )
263263
264264
265- def test_slice_float_get_set (test_data ):
265+ def test_slice_float_get_set (datetime_series ):
266266 msg = (
267267 r"cannot do slice indexing on <class 'pandas\.core\.indexes"
268268 r"\.datetimes\.DatetimeIndex'> with these indexers \[{key}\]"
269269 r" of <class 'float'>"
270270 )
271271 with pytest .raises (TypeError , match = msg .format (key = r"4\.0" )):
272- test_data . ts [4.0 :10.0 ]
272+ datetime_series [4.0 :10.0 ]
273273
274274 with pytest .raises (TypeError , match = msg .format (key = r"4\.0" )):
275- test_data . ts [4.0 :10.0 ] = 0
275+ datetime_series [4.0 :10.0 ] = 0
276276
277277 with pytest .raises (TypeError , match = msg .format (key = r"4\.5" )):
278- test_data . ts [4.5 :10.0 ]
278+ datetime_series [4.5 :10.0 ]
279279 with pytest .raises (TypeError , match = msg .format (key = r"4\.5" )):
280- test_data . ts [4.5 :10.0 ] = 0
280+ datetime_series [4.5 :10.0 ] = 0
281281
282282
283283def test_slice_floats2 ():
@@ -312,6 +312,6 @@ def test_int_indexing():
312312 s ["c" ]
313313
314314
315- def test_getitem_int64 (test_data ):
315+ def test_getitem_int64 (datetime_series ):
316316 idx = np .int64 (5 )
317- assert test_data . ts [idx ] == test_data . ts [5 ]
317+ assert datetime_series [idx ] == datetime_series [5 ]
0 commit comments