Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(3)  |  Derive(0)  |  Import(2)

src/o/c/ocrodjvu-0.7.18/tests/ipc.py   ocrodjvu(Download)
import stat
 
from tests.common import (
    amended_environment,
    assert_equal,
    def test_sigabrt(self):
        ex = ipc.CalledProcessInterrupted(signal.SIGABRT, 'eggs')
        assert_equal(str(ex), "Command 'eggs' was interrupted by signal SIGABRT")
        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)
    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 %d" % signal.NSIG)
        assert_false(ex.by_user)

src/o/c/ocrodjvu-0.7.18/tests/engines/cuneiform/__init__.py   ocrodjvu(Download)
import sys
 
from tests.common import (
    assert_equal,
    assert_false,