Fix the fatal error test case

This commit is contained in:
int3l 2020-09-16 23:35:27 +03:00 committed by GitHub
parent c99db7830b
commit b84274a891
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()