mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 18:11:48 +04:00
Fix the fatal error test case
This commit is contained in:
parent
c99db7830b
commit
b84274a891
1 changed files with 1 additions and 1 deletions
|
|
@ -98,7 +98,7 @@ def test_error_handler_keyboardinterrupt(mocked_log_and_exit):
|
||||||
def test_log_and_exit(cap_out, mock_store_dir):
|
def test_log_and_exit(cap_out, mock_store_dir):
|
||||||
with pytest.raises(SystemExit):
|
with pytest.raises(SystemExit):
|
||||||
error_handler._log_and_exit(
|
error_handler._log_and_exit(
|
||||||
'msg', error_handler.FatalError('hai'), "I'm a stacktrace",
|
'msg', 1, error_handler.FatalError('hai'), "I'm a stacktrace",
|
||||||
)
|
)
|
||||||
|
|
||||||
printed = cap_out.get()
|
printed = cap_out.get()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue