Exemplo n.º 1
0
 def test_ctrl_c_handling(self):
     pl = Pipeline()
     self.assertFalse(pl._stop)
     pl._handle_ctrl_c()    # first KeyboardInterrupt
     self.assertTrue(pl._stop)
     with self.assertRaises(SystemExit):
         pl._handle_ctrl_c()    # second KeyboardInterrupt