Known subclasses: twisted.test.test_process.PosixProcessPTYTests, twisted.test.test_process.PosixProcessTests

Test running processes.

Method getCommand Return the path of the shell command named commandName, looking at common locations.
Method test_normalTermination Undocumented
Method test_abnormalTermination When a process terminates with a system exit code set to 1, processEnded is called with a error.ProcessTerminated error, the exitCode attribute reflecting the system exit code.
Method test_signalHUP No summary
Method test_signalINT No summary
Method test_signalKILL No summary
Method test_signalTERM No summary
Method test_childSignalHandling The disposition of signals which are ignored in the parent process is reset to the default behavior for the child process.
Method test_executionError Raise an error during execvpe to check error management.
Method test_errorInProcessEnded The handler which reaps a process is removed when the process is reaped, even if the protocol's processEnded method raises an exception.
Method _testSignal Undocumented
def getCommand(self, commandName):

Return the path of the shell command named commandName, looking at common locations.

def test_normalTermination(self):
Undocumented
def test_abnormalTermination(self):

When a process terminates with a system exit code set to 1, processEnded is called with a error.ProcessTerminated error, the exitCode attribute reflecting the system exit code.

def _testSignal(self, sig):
Undocumented
def test_signalHUP(self):

Sending the SIGHUP signal to a running process interrupts it, and processEnded is called with a error.ProcessTerminated instance with the exitCode set to None and the signal attribute set to signal.SIGHUP. os.WTERMSIG can also be used on the status attribute to extract the signal value.

def test_signalINT(self):

Sending the SIGINT signal to a running process interrupts it, and processEnded is called with a error.ProcessTerminated instance with the exitCode set to None and the signal attribute set to signal.SIGINT. os.WTERMSIG can also be used on the status attribute to extract the signal value.

def test_signalKILL(self):

Sending the SIGKILL signal to a running process interrupts it, and processEnded is called with a error.ProcessTerminated instance with the exitCode set to None and the signal attribute set to signal.SIGKILL. os.WTERMSIG can also be used on the status attribute to extract the signal value.

def test_signalTERM(self):

Sending the SIGTERM signal to a running process interrupts it, and processEnded is called with a error.ProcessTerminated instance with the exitCode set to None and the signal attribute set to signal.SIGTERM. os.WTERMSIG can also be used on the status attribute to extract the signal value.

def test_childSignalHandling(self):

The disposition of signals which are ignored in the parent process is reset to the default behavior for the child process.

def test_executionError(self):

Raise an error during execvpe to check error management.

def test_errorInProcessEnded(self):

The handler which reaps a process is removed when the process is reaped, even if the protocol's processEnded method raises an exception.

API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.