From 22d91a3c3a248761506a38fdf26c859b341e82be Mon Sep 17 00:00:00 2001 From: Tomer Keren Date: Sat, 18 May 2019 14:27:47 +0300 Subject: [PATCH] Unroll calls to all on python 2 --- src/_pytest/assertion/rewrite.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/_pytest/assertion/rewrite.py b/src/_pytest/assertion/rewrite.py index 5690e0e33..e3870d435 100644 --- a/src/_pytest/assertion/rewrite.py +++ b/src/_pytest/assertion/rewrite.py @@ -1020,6 +1020,8 @@ warn_explicit( """ visit `ast.Call nodes on 3.4 and below` """ + if isinstance(call.func, ast.Name) and call.func.id == "all": + return self._visit_all(call) new_func, func_expl = self.visit(call.func) arg_expls = [] new_args = []