From 78be3db9bb0bb15588d7a26e8c2e7ac818f1ccb3 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Thu, 19 May 2011 19:15:20 -0500 Subject: [PATCH] remove unneeded list --- _pytest/assertrewrite.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/_pytest/assertrewrite.py b/_pytest/assertrewrite.py index bc755123f..6b978bff8 100644 --- a/_pytest/assertrewrite.py +++ b/_pytest/assertrewrite.py @@ -93,7 +93,6 @@ class AssertionRewriter(ast.NodeVisitor): pos += 1 mod.body[pos:pos] = imports # Collect asserts. - asserts = [] nodes = collections.deque([mod]) while nodes: node = nodes.popleft() @@ -104,7 +103,6 @@ class AssertionRewriter(ast.NodeVisitor): if isinstance(child, ast.Assert): # Transform assert. new.extend(self.visit(child)) - asserts.append((field, i, child)) else: new.append(child) if isinstance(child, ast.AST):