From 94050a8aaf63f7890e3599bf10f43e1e2a31e8b7 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Tue, 27 Feb 2018 07:26:25 -0300 Subject: [PATCH] Remove config paramter from pytest_terminal_summary as discussed during review --- _pytest/hookspec.py | 3 +-- _pytest/terminal.py | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/_pytest/hookspec.py b/_pytest/hookspec.py index cffc4f8b0af..70349416e20 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 90c5d87d992..18200945bf3 100644 --- a/_pytest/terminal.py +++ b/_pytest/terminal.py @@ -480,7 +480,6 @@ def pytest_sessionfinish(self, exitstatus): 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()