diff --git a/_pytest/hookspec.py b/_pytest/hookspec.py index cffc4f8b0..70349416e 100644 --- a/_pytest/hookspec.py +++ b/_pytest/hookspec.py @@ -489,10 +489,9 @@ def pytest_report_teststatus(report): Stops at first non-None result, see :ref:`firstresult` """ -def pytest_terminal_summary(config, terminalreporter, exitstatus): +def pytest_terminal_summary(terminalreporter, exitstatus): """Add a section to terminal summary reporting. - :param _pytest.config.Config config: pytest config object :param _pytest.terminal.TerminalReporter terminalreporter: the internal terminal reporter object :param int exitstatus: the exit status that will be reported back to the OS diff --git a/_pytest/terminal.py b/_pytest/terminal.py index 90c5d87d9..18200945b 100644 --- a/_pytest/terminal.py +++ b/_pytest/terminal.py @@ -480,7 +480,6 @@ class TerminalReporter(object): EXIT_NOTESTSCOLLECTED) if exitstatus in summary_exit_codes: self.config.hook.pytest_terminal_summary(terminalreporter=self, - config=self.config, exitstatus=exitstatus) if exitstatus == EXIT_INTERRUPTED: self._report_keyboardinterrupt()