@@ -228,8 +228,8 @@ def check_complex_cmp_op(self, lhs, cmp1, rhs, binop, cmp2):
228228 local_dict = {'lhs' : lhs , 'rhs' : rhs },
229229 engine = self .engine , parser = self .parser )
230230 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 )
233233 self .assertRaises (TypeError , pd .eval , ex ,
234234 local_dict = {'lhs' : lhs , 'rhs' : rhs },
235235 engine = self .engine , parser = self .parser )
@@ -281,7 +281,7 @@ def check_operands(left, right, cmp_op):
281281 ex2 = 'lhs {0} mid and mid {1} rhs' .format (cmp1 , cmp2 )
282282 ex3 = '(lhs {0} mid) & (mid {1} rhs)' .format (cmp1 , cmp2 )
283283 for ex in (ex1 , ex2 , ex3 ):
284- with assertRaises (NotImplementedError ):
284+ with tm . assertRaises (NotImplementedError ):
285285 pd .eval (ex , engine = self .engine , parser = self .parser )
286286 return
287287 if (np .isscalar (right ) and not np .isscalar (left ) and cmp_op in
0 commit comments