File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -334,14 +334,10 @@ def test_maybe_promote_any_with_datetime64(
334
334
335
335
if boxed :
336
336
if is_datetime64_dtype (dtype ):
337
- if box_dtype == object :
338
- pytest .xfail ("falsely upcasts to object" )
339
- elif box_dtype is None and not is_datetime64_dtype (type (fill_value )):
337
+ if box_dtype is None and not is_datetime64_dtype (type (fill_value )):
340
338
pytest .xfail ("falsely upcasts to object" )
341
339
else :
342
- if box_dtype == "dt_dtype" :
343
- pytest .xfail ("mix of lack of upcasting, resp. wrong missing value" )
344
- elif box_dtype is None and is_datetime64_dtype (type (fill_value )):
340
+ if box_dtype is None and is_datetime64_dtype (type (fill_value )):
345
341
pytest .xfail ("mix of lack of upcasting, resp. wrong missing value" )
346
342
347
343
# special case for box_dtype
You can’t perform that action at this time.
0 commit comments