diff --git a/_pytest/nodes.py b/_pytest/nodes.py index 7d802004f..e076d5747 100644 --- a/_pytest/nodes.py +++ b/_pytest/nodes.py @@ -227,7 +227,6 @@ class Node(object): def listextrakeywords(self): """ Return a set of all extra keywords in self and any parents.""" extra_keywords = set() - item = self for item in self.listchain(): extra_keywords.update(item.extra_keyword_matches) return extra_keywords