diff --git a/_pytest/core.py b/_pytest/core.py index adeca21a6..ae3da5381 100644 --- a/_pytest/core.py +++ b/_pytest/core.py @@ -181,10 +181,8 @@ class PluginManager(object): def make_hook_caller(self, name, plugins): caller = getattr(self.hook, name) methods = self.listattr(name, plugins=plugins) - if methods: - return HookCaller(caller.name, caller.firstresult, - argnames=caller.argnames, methods=methods) - return caller + return HookCaller(caller.name, caller.firstresult, + argnames=caller.argnames, methods=methods) def register(self, plugin, name=None): """ Register a plugin with the given name and ensure that all its