introduced pytest_keyboardinterrupt hook

removed optional argument from pytest_sessionfinish hook

--HG--
branch : 1.0.x
This commit is contained in:
holger krekel
2009-07-20 14:01:40 +02:00
parent 04a98700d9
commit 8be0ea942a
7 changed files with 31 additions and 25 deletions

View File

@@ -94,11 +94,11 @@ def pytest_runtest_logreport(rep):
def pytest_sessionstart(session):
""" before session.main() is called. """
def pytest_sessionfinish(session, exitstatus, excrepr=None):
def pytest_sessionfinish(session, exitstatus):
""" whole test run finishes. """
# -------------------------------------------------------------------------
# generic reporting hooks (invoked from pytest_terminal)
# hooks for influencing reporting (invoked from pytest_terminal)
# -------------------------------------------------------------------------
def pytest_report_teststatus(rep):
@@ -140,7 +140,7 @@ def pytest_looponfailinfo(failreports, rootdirs):
# -------------------------------------------------------------------------
# internal debugging hooks
# error handling and internal debugging hooks
# -------------------------------------------------------------------------
def pytest_plugin_registered(plugin):
@@ -152,5 +152,8 @@ def pytest_plugin_unregistered(plugin):
def pytest_internalerror(excrepr):
""" called for internal errors. """
def pytest_keyboard_interrupt(excinfo):
""" called for keyboard interrupt. """
def pytest_trace(category, msg):
""" called for debug info. """