@@ -103,11 +103,8 @@ def test_logical_operators_int_dtype_with_float(self):
103103 s_0123 & [0.1 , 4 , 3.14 , 2 ]
104104 with pytest .raises (TypeError ):
105105 s_0123 & np .array ([0.1 , 4 , 3.14 , 2 ])
106-
107- # FIXME: this should be consistent with the list case above
108- expected = Series ([False , True , False , True ])
109- result = s_0123 & Series ([0.1 , 4 , - 3.14 , 2 ])
110- assert_series_equal (result , expected )
106+ with pytest .raises (TypeError ):
107+ s_0123 & Series ([0.1 , 4 , - 3.14 , 2 ])
111108
112109 def test_logical_operators_int_dtype_with_str (self ):
113110 s_1111 = Series ([1 ] * 4 , dtype = "int8" )
@@ -145,9 +142,8 @@ def test_logical_operators_int_dtype_with_object(self):
145142 assert_series_equal (result , expected )
146143
147144 s_abNd = Series (["a" , "b" , np .NaN , "d" ])
148- result = s_0123 & s_abNd
149- expected = Series ([False , True , False , True ])
150- assert_series_equal (result , expected )
145+ with pytest .raises (TypeError , match = "unsupported.* 'int' and 'str'" ):
146+ s_0123 & s_abNd
151147
152148 def test_logical_operators_bool_dtype_with_int (self ):
153149 index = list ("bca" )
0 commit comments