We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46d88c1 commit 1ef3637Copy full SHA for 1ef3637
pandas/tests/dtypes/cast/test_promote.py
@@ -1038,14 +1038,7 @@ def test_maybe_promote_any_numpy_dtype_with_na(
1038
dtype = np.dtype(any_numpy_dtype_reduced)
1039
boxed, box_dtype = box # read from parametrized fixture
1040
1041
- if (
1042
- dtype == bytes
1043
- and not boxed
1044
- and fill_value is not None
1045
- and fill_value is not NaT
1046
- ):
1047
- pytest.xfail("does not upcast to object")
1048
- elif is_integer_dtype(dtype) and fill_value is not NaT:
+ if is_integer_dtype(dtype) and fill_value is not NaT:
1049
# integer + other missing value (np.nan / None) casts to float
1050
expected_dtype = np.float64
1051
exp_val_for_scalar = np.nan
0 commit comments