@@ -228,8 +228,8 @@ def check_complex_cmp_op(self, lhs, cmp1, rhs, binop, cmp2):
228
228
local_dict = {'lhs' : lhs , 'rhs' : rhs },
229
229
engine = self .engine , parser = self .parser )
230
230
elif _bool_and_frame (lhs , rhs ):
231
- self .assertRaises (TypeError , _eval_single_bin , lhs_new , '&' ,
232
- rhs_new , self .engine )
231
+ self .assertRaises (TypeError , _eval_single_bin , lhs , '&' ,
232
+ rhs , self .engine )
233
233
self .assertRaises (TypeError , pd .eval , ex ,
234
234
local_dict = {'lhs' : lhs , 'rhs' : rhs },
235
235
engine = self .engine , parser = self .parser )
@@ -281,7 +281,7 @@ def check_operands(left, right, cmp_op):
281
281
ex2 = 'lhs {0} mid and mid {1} rhs' .format (cmp1 , cmp2 )
282
282
ex3 = '(lhs {0} mid) & (mid {1} rhs)' .format (cmp1 , cmp2 )
283
283
for ex in (ex1 , ex2 , ex3 ):
284
- with assertRaises (NotImplementedError ):
284
+ with tm . assertRaises (NotImplementedError ):
285
285
pd .eval (ex , engine = self .engine , parser = self .parser )
286
286
return
287
287
if (np .isscalar (right ) and not np .isscalar (left ) and cmp_op in
0 commit comments