diff --git a/pluggy/__init__.py b/pluggy/__init__.py index 42d2220b..fa012905 100644 --- a/pluggy/__init__.py +++ b/pluggy/__init__.py @@ -626,6 +626,8 @@ def call_historic(self, proc=None, kwargs=None): self._call_history.append((kwargs or {}, proc)) # historizing hooks don't return results res = self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) + if proc is None: + return for x in res or []: proc(x)