Esempio n. 1
0
 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)
Esempio n. 2
0
 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)
Esempio n. 3
0
 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)
Esempio n. 4
0
 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)