Skip to content

Commit ac2cb87

Browse files
committed
trim xfail cases
1 parent 677825b commit ac2cb87

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

pandas/tests/dtypes/cast/test_promote.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -334,14 +334,10 @@ def test_maybe_promote_any_with_datetime64(
334334

335335
if boxed:
336336
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)):
340338
pytest.xfail("falsely upcasts to object")
341339
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)):
345341
pytest.xfail("mix of lack of upcasting, resp. wrong missing value")
346342

347343
# special case for box_dtype

0 commit comments

Comments
 (0)