def test_quit_on_eof(self): def f(): raise EOFError with self.assertRaises(SystemExit): with cli.exec_ctx(): f()
def test_ignore_aborted(self): def f(): raise errors.Aborted() with cli.exec_ctx(): f()
def test_ignore_keyboard_interrupt(self): def f(): raise KeyboardInterrupt with cli.exec_ctx(): f()