def test_invalid_signo(self): # signal.NSIG is guaranteed not be a correct signal number ex = ipc.CalledProcessInterrupted(signal.NSIG, 'eggs') assert_equal( str(ex), "Command 'eggs' was interrupted by signal {0}".format(signal.NSIG)) assert_false(ex.by_user)
def test_invalid_signo(self): # signal.NSIG is guaranteed not be a correct signal number ex = ipc.CalledProcessInterrupted(signal.NSIG, 'eggs') assert_equal(str(ex), "Command 'eggs' was interrupted by signal {0}".format(signal.NSIG)) assert_false(ex.by_user)
def test_sigsegv(self): ex = ipc.CalledProcessInterrupted(signal.SIGSEGV, 'eggs') assert_equal(str(ex), "Command 'eggs' was interrupted by signal SIGSEGV") assert_false(ex.by_user)