@@ -610,10 +610,12 @@ def test_where_object(self, index_or_series, fill_val, exp_dtype):
610610 "fill_val,exp_dtype" ,
611611 [(1 , np .int64 ), (1.1 , np .float64 ), (1 + 1j , np .complex128 ), (True , object )],
612612 )
613- def test_where_int64 (self , index_or_series , fill_val , exp_dtype ):
613+ def test_where_int64 (self , index_or_series , fill_val , exp_dtype , request ):
614614 klass = index_or_series
615615 if klass is pd .Index and exp_dtype is np .complex128 :
616- pytest .skip ("Complex Index not supported" )
616+ mark = pytest .mark .xfail (reason = "Complex Index not supported" )
617+ request .node .add_marker (mark )
618+
617619 obj = klass ([1 , 2 , 3 , 4 ])
618620 assert obj .dtype == np .int64
619621 cond = klass ([True , False , True , False ])
@@ -632,10 +634,12 @@ def test_where_int64(self, index_or_series, fill_val, exp_dtype):
632634 "fill_val, exp_dtype" ,
633635 [(1 , np .float64 ), (1.1 , np .float64 ), (1 + 1j , np .complex128 ), (True , object )],
634636 )
635- def test_where_float64 (self , index_or_series , fill_val , exp_dtype ):
637+ def test_where_float64 (self , index_or_series , fill_val , exp_dtype , request ):
636638 klass = index_or_series
637639 if klass is pd .Index and exp_dtype is np .complex128 :
638- pytest .skip ("Complex Index not supported" )
640+ mark = pytest .mark .xfail (reason = "Complex Index not supported" )
641+ request .node .add_marker (mark )
642+
639643 obj = klass ([1.1 , 2.2 , 3.3 , 4.4 ])
640644 assert obj .dtype == np .float64
641645 cond = klass ([True , False , True , False ])
0 commit comments