From dc3e39e95c4a537bba1653913a1fb6ca528fcd00 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Thu, 19 May 2011 21:57:27 -0500 Subject: [PATCH] a less silly way to check comparison results --- _pytest/assertrewrite.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/_pytest/assertrewrite.py b/_pytest/assertrewrite.py index ed9e0ca55..3d847b648 100644 --- a/_pytest/assertrewrite.py +++ b/_pytest/assertrewrite.py @@ -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))