@@ -821,7 +821,6 @@ def test_frame_with_frame_reindex(self):
821
821
(np .datetime64 (20 , "ns" ), "<M8[ns]" ),
822
822
],
823
823
)
824
- @pytest .mark .xfail (reason = "GH38630" , strict = False )
825
824
@pytest .mark .parametrize (
826
825
"op" ,
827
826
[
@@ -835,9 +834,12 @@ def test_frame_with_frame_reindex(self):
835
834
ids = lambda x : x .__name__ ,
836
835
)
837
836
def test_binop_other (self , op , value , dtype ):
837
+
838
838
skip = {
839
839
(operator .truediv , "bool" ),
840
840
(operator .pow , "bool" ),
841
+ (operator .add , "bool" ),
842
+ (operator .mul , "bool" ),
841
843
}
842
844
843
845
e = DummyElement (value , dtype )
@@ -879,12 +881,18 @@ def test_binop_other(self, op, value, dtype):
879
881
880
882
elif (op , dtype ) in skip :
881
883
882
- msg = "operator '.*' not implemented for .* dtypes"
883
- with pytest .raises (NotImplementedError , match = msg ):
884
+ if op in [operator .add , operator .mul ]:
884
885
with tm .assert_produces_warning (UserWarning ):
885
886
# "evaluating in Python space because ..."
886
887
op (s , e .value )
887
888
889
+ else :
890
+ msg = "operator '.*' not implemented for .* dtypes"
891
+ with pytest .raises (NotImplementedError , match = msg ):
892
+ with tm .assert_produces_warning (UserWarning ):
893
+ # "evaluating in Python space because ..."
894
+ op (s , e .value )
895
+
888
896
else :
889
897
# FIXME: Since dispatching to Series, this test no longer
890
898
# asserts anything meaningful
0 commit comments