@@ -723,9 +723,6 @@ def test_maybe_promote_any_numpy_dtype_with_datetimetz(
723723 fill_dtype = DatetimeTZDtype (tz = tz_aware_fixture )
724724 boxed , box_dtype = box # read from parametrized fixture
725725
726- if dtype .kind == "M" and not boxed :
727- pytest .xfail ("Comes back as M8 instead of object" )
728-
729726 fill_value = pd .Series ([fill_value ], dtype = fill_dtype )[0 ]
730727
731728 # filling any numpy dtype with datetimetz casts to object
@@ -847,11 +844,6 @@ def test_maybe_promote_string_with_any(string_dtype, any_numpy_dtype_reduced, bo
847844 fill_dtype = np .dtype (any_numpy_dtype_reduced )
848845 boxed , box_dtype = box # read from parametrized fixture
849846
850- if boxed and box_dtype is None and fill_dtype .kind == "m" :
851- pytest .xfail ("wrong missing value marker" )
852- if boxed and box_dtype is None and fill_dtype .kind == "M" :
853- pytest .xfail ("wrong missing value marker" )
854-
855847 # create array of given dtype; casts "1" to correct dtype
856848 fill_value = np .array ([1 ], dtype = fill_dtype )[0 ]
857849
@@ -914,9 +906,6 @@ def test_maybe_promote_object_with_any(object_dtype, any_numpy_dtype_reduced, bo
914906 fill_dtype = np .dtype (any_numpy_dtype_reduced )
915907 boxed , box_dtype = box # read from parametrized fixture
916908
917- if boxed and box_dtype is None and is_datetime_or_timedelta_dtype (fill_dtype ):
918- pytest .xfail ("wrong missing value marker" )
919-
920909 # create array of given dtype; casts "1" to correct dtype
921910 fill_value = np .array ([1 ], dtype = fill_dtype )[0 ]
922911
0 commit comments