a less silly way to check comparison results

This commit is contained in:
Benjamin Peterson 2011-05-19 21:57:27 -05:00
parent 4f2166c997
commit dc3e39e95c
1 changed files with 1 additions and 2 deletions

View File

@ -314,6 +314,5 @@ class AssertionRewriter(ast.NodeVisitor):
ast.Tuple(load_names, ast.Load()),
ast.Tuple(expls, ast.Load()),
ast.Tuple(results, ast.Load()))
args = [ast.List(load_names, ast.Load())]
res = ast.Call(self.builtin("all"), args, [], None, None)
res = ast.BoolOp(ast.And(), load_names)
return res, self.explanation_param(self.pop_format_context(expl_call))