diff --git a/pandas/tests/dtypes/cast/test_promote.py b/pandas/tests/dtypes/cast/test_promote.py index da2b4c28a02a5..45dbdf72209b6 100644 --- a/pandas/tests/dtypes/cast/test_promote.py +++ b/pandas/tests/dtypes/cast/test_promote.py @@ -1038,14 +1038,7 @@ def test_maybe_promote_any_numpy_dtype_with_na( dtype = np.dtype(any_numpy_dtype_reduced) boxed, box_dtype = box # read from parametrized fixture - if ( - dtype == bytes - and not boxed - and fill_value is not None - and fill_value is not NaT - ): - pytest.xfail("does not upcast to object") - elif is_integer_dtype(dtype) and fill_value is not NaT: + if is_integer_dtype(dtype) and fill_value is not NaT: # integer + other missing value (np.nan / None) casts to float expected_dtype = np.float64 exp_val_for_scalar = np.nan