'Test the -e option to ignore sys.exit()'

def test_ignore_sys_exit(self):

    src = 'import    sys;    sys.exit(1)'
    self.mktmp(src)
    with tt.AssertPrints('SystemExit'):
        _ip.magic(('run    %s' % self.fname))
    with tt.AssertNotPrints('SystemExit'):
        _ip.magic(('run    -e    %s' % self.fname))
