@@ -262,22 +262,22 @@ def test_setitem_float_labels():
262
262
assert_series_equal (s , tmp )
263
263
264
264
265
- def test_slice_float_get_set (test_data ):
265
+ def test_slice_float_get_set (datetime_series ):
266
266
msg = (
267
267
r"cannot do slice indexing on <class 'pandas\.core\.indexes"
268
268
r"\.datetimes\.DatetimeIndex'> with these indexers \[{key}\]"
269
269
r" of <class 'float'>"
270
270
)
271
271
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 ]
273
273
274
274
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
276
276
277
277
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 ]
279
279
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
281
281
282
282
283
283
def test_slice_floats2 ():
@@ -312,6 +312,6 @@ def test_int_indexing():
312
312
s ["c" ]
313
313
314
314
315
- def test_getitem_int64 (test_data ):
315
+ def test_getitem_int64 (datetime_series ):
316
316
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