@mock_streams('stderr')
@with_patched_object(output, 'aborts', True)
def test_abort_exception_contains_separate_message_and_code():
    """
    abort()'s SystemExit contains distinct .code/.message attributes.
    """
    # Re #1318 / #1213
    try:
        abort("Test")
    except __HOLE__ as e:
        eq_(e.message, "Test")
        eq_(e.code, 1)
dataset/ETHPy150Open fabric/fabric/tests/test_utils.py/test_abort_exception_contains_separate_message_and_code