seems like pypy's callable builtin calls __getattr__ so we do the check

later.
This commit is contained in:
holger krekel 2015-09-28 14:02:30 +02:00
parent 4e3a807733
commit 1c0ffc5caf
1 changed files with 2 additions and 2 deletions

View File

@ -1918,14 +1918,14 @@ class FixtureManager:
autousenames = []
for name in dir(holderobj):
obj = getattr(holderobj, name, None)
if not callable(obj):
continue
# fixture functions have a pytest_funcarg__ prefix (pre-2.3 style)
# or are "@pytest.fixture" marked
marker = getfixturemarker(obj)
if marker is None:
if not name.startswith(self._argprefix):
continue
if not callable(obj):
continue
marker = defaultfuncargprefixmarker
name = name[len(self._argprefix):]
elif not isinstance(marker, FixtureFunctionMarker):