When called without arguments this function removes the control-c handler if it has been installed. This function can also be used as a test decorator to temporarily remove the handler while the test is being executed:
unittest.removeHandler(function=None)
@unittest.removeHandler
def test_signal_handling(self):
...