@mock_streams('stderr')
@with_patched_object(output, 'aborts', True)
def test_abort_exception_contains_separate_message_and_code():
 try:
  abort('Test')
 except SystemExit as e:
  eq_(e.message, 'Test')
  eq_(e.code, 1)

@ mock_streams ( 'stderr' ) @ with_patched_object ( output , 'aborts' , True ) def test_abort_exception_contains_separate_message_and_code ( ) : try : abort ( 'Test' ) except SystemExit as e : eq_ ( e . message , 'Test' ) eq_ ( e . code , 1 )
abort()s systemexit contains distinct .