aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '_pytest/main.py')
-rw-r--r--_pytest/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/_pytest/main.py b/_pytest/main.py
index d7948c6faf..f73ff597a0 100644
--- a/_pytest/main.py
+++ b/_pytest/main.py
@@ -71,7 +71,7 @@ def pytest_cmdline_main(config):
session.exitstatus = EXIT_INTERRUPTED
except:
excinfo = py.code.ExceptionInfo()
- config.pluginmanager.notify_exception(excinfo)
+ config.pluginmanager.notify_exception(excinfo, config.option)
session.exitstatus = EXIT_INTERNALERROR
if excinfo.errisinstance(SystemExit):
sys.stderr.write("mainloop: caught Spurious SystemExit!\n")