@@ -265,7 +265,11 @@ def test_getitem_deprecated_float(idx):
265
265
266
266
@pytest .mark .parametrize (
267
267
"idx,targets" ,
268
- [(Float64Index ([]), np .array ([np .nan ])), (DatetimeIndex ([]), np .array ([NaT ]))],
268
+ [
269
+ (Index ([]), np .array ([None ])),
270
+ (Float64Index ([]), np .array ([np .nan ])),
271
+ (DatetimeIndex ([]), np .array ([NaT ])),
272
+ ],
269
273
)
270
274
def test_get_stargets (idx , targets ):
271
275
# GH 35392
@@ -275,6 +279,7 @@ def test_get_stargets(idx, targets):
275
279
@pytest .mark .parametrize (
276
280
"idx,val,expected" ,
277
281
[
282
+ (Index ([]), None , - 1 ),
278
283
(Int64Index ([]), 1 , 1 ),
279
284
(Float64Index ([]), np .nan , - 1 ),
280
285
(DatetimeIndex ([]), NaT , - 1 ),
@@ -288,6 +293,7 @@ def test_convert_val_if_nan(idx, val, expected):
288
293
@pytest .mark .parametrize (
289
294
"idx,target,val,expected" ,
290
295
[
296
+ (Index ([]), None , None , True ),
291
297
(Int64Index ([]), 1 , 1 , True ),
292
298
(Float64Index ([]), np .nan , np .nan , True ),
293
299
(Float64Index ([]), 1 , np .nan , False ),
0 commit comments