File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -524,15 +524,15 @@ def test_maybe_promote_any_with_timedelta64(
524
524
dtype = np .dtype (any_numpy_dtype_reduced )
525
525
boxed , box_dtype = box # read from parametrized fixture
526
526
527
- if is_timedelta64_dtype ( dtype ) :
528
- if boxed and (
529
- box_dtype == object
530
- or ( box_dtype is None and not is_timedelta64_dtype ( type ( fill_value )) )
531
- ):
532
- pytest .xfail ("falsely upcasts to object" )
533
- else :
534
- if boxed and box_dtype is None and is_timedelta64_dtype (type (fill_value )):
535
- pytest .xfail ("does not upcast correctly" )
527
+ if boxed :
528
+ if is_timedelta64_dtype ( dtype ):
529
+ if box_dtype == object :
530
+ pytest . xfail ( "falsely upcasts to object" )
531
+ elif box_dtype is None and not is_timedelta64_dtype ( type ( fill_value ) ):
532
+ pytest .xfail ("falsely upcasts to object" )
533
+ else :
534
+ if box_dtype is None and is_timedelta64_dtype (type (fill_value )):
535
+ pytest .xfail ("does not upcast correctly" )
536
536
537
537
# special case for box_dtype
538
538
box_dtype = np .dtype (timedelta64_dtype ) if box_dtype == "td_dtype" else box_dtype
You can’t perform that action at this time.
0 commit comments