Issue 306: Use the names of all the parents in the chain for matching, except the Instance objects.

This commit is contained in:
Wouter van Ackooy 2013-05-27 17:58:39 +02:00
parent 72afbbbd71
commit 60906f7a46
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ def matchkeyword(colitem, keywordexpr):
# Add the names of the current item and any parent items
for item in colitem.listchain():
if isinstance(item, pytest.Class) or isinstance(item, pytest.Function):
if not isinstance(item, pytest.Instance):
mapped_names.append(item.name)
# Add the names added as extra keywords to current or parent items