@@ -103,11 +103,8 @@ def test_logical_operators_int_dtype_with_float(self):
103
103
s_0123 & [0.1 , 4 , 3.14 , 2 ]
104
104
with pytest .raises (TypeError ):
105
105
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 ])
111
108
112
109
def test_logical_operators_int_dtype_with_str (self ):
113
110
s_1111 = Series ([1 ] * 4 , dtype = "int8" )
@@ -145,9 +142,8 @@ def test_logical_operators_int_dtype_with_object(self):
145
142
assert_series_equal (result , expected )
146
143
147
144
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
151
147
152
148
def test_logical_operators_bool_dtype_with_int (self ):
153
149
index = list ("bca" )
0 commit comments