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

@@ -19,11 +19,10 @@ def pytest_addoption(parser):
def pytest_configure(config):
config._setupstate = SetupState()
def pytest_sessionfinish(session, exitstatus, excrepr=None):
def pytest_sessionfinish(session, exitstatus):
# XXX see above
if hasattr(session.config, '_setupstate'):
session.config._setupstate.teardown_all()
# prevent logging module atexit handler from choking on
# its attempt to close already closed streams
# see http://bugs.python.org/issue6333