Skip to content

Commit c6aee51

Browse files
jbrockmendelNico Cernek
authored and
Nico Cernek
committed
TST: un-xfail 22 tests (pandas-dev#28856)
1 parent 3ae9af3 commit c6aee51

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

pandas/tests/dtypes/cast/test_promote.py

-11
Original file line numberDiff line numberDiff line change
@@ -515,14 +515,6 @@ def test_maybe_promote_bytes_with_any(bytes_dtype, any_numpy_dtype_reduced, box)
515515
else:
516516
if boxed and box_dtype is None:
517517
pytest.xfail("does not upcast to object")
518-
if (
519-
is_integer_dtype(fill_dtype)
520-
or is_float_dtype(fill_dtype)
521-
or is_complex_dtype(fill_dtype)
522-
or is_object_dtype(fill_dtype)
523-
or is_timedelta64_dtype(fill_dtype)
524-
) and not boxed:
525-
pytest.xfail("does not upcast to object")
526518

527519
# create array of given dtype; casts "1" to correct dtype
528520
fill_value = np.array([1], dtype=fill_dtype)[0]
@@ -557,15 +549,12 @@ def test_maybe_promote_any_with_bytes(any_numpy_dtype_reduced, bytes_dtype, box)
557549
else:
558550
pytest.xfail("wrong missing value marker")
559551
else:
560-
pass
561552
if (
562553
boxed
563554
and (box_dtype == "bytes" or box_dtype is None)
564555
and not (is_string_dtype(dtype) or dtype == bool)
565556
):
566557
pytest.xfail("does not upcast to object")
567-
if not boxed and is_datetime_or_timedelta_dtype(dtype):
568-
pytest.xfail("raises error")
569558

570559
# create array of given dtype
571560
fill_value = b"abc"

0 commit comments

Comments
 (0)