pytest warnings emitted during `pytest_terminal_summary` are now properly displayed.

Fix #1305
This commit is contained in:
Bruno Oliveira
2016-01-04 00:07:45 -02:00
parent 80d6d94635
commit 369d9ecaa5
3 changed files with 22 additions and 1 deletions

View File

@@ -364,10 +364,10 @@ class TerminalReporter:
EXIT_OK, EXIT_TESTSFAILED, EXIT_INTERRUPTED, EXIT_USAGEERROR,
EXIT_NOTESTSCOLLECTED)
if exitstatus in summary_exit_codes:
self.config.hook.pytest_terminal_summary(terminalreporter=self)
self.summary_errors()
self.summary_failures()
self.summary_warnings()
self.config.hook.pytest_terminal_summary(terminalreporter=self)
if exitstatus == EXIT_INTERRUPTED:
self._report_keyboardinterrupt()
del self._keyboardinterrupt_memo