Module Expr Str Assign NameStore NameLoad Import alias alias alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad ListLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr Str Str keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore BinOpAdd Str AttributeLoad NameLoad attr Assign NameStore Str FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr Str NameLoad TryExcept body Expr Call NameLoad NameLoad NameLoad handlers ExceptHandler body Expr Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Str decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad Str attr SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Num NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults body TryFinally body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Num NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore NameLoad orelse Assign NameStore Dict Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args defaults vararg body Expr Call AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr Str Str keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Num If UnaryOpNot Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body Return Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list If CompareIs Call NameLoad NameLoad Str NameLoad NameLoad body Assign AttributeStore NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Call NameLoad NameLoad BinOpAdd Str NameLoad Assign NameStore Call NameLoad Assign NameStore Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad BinOpMod Str TupleLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad BinOpMod Str TupleLoad NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad BinOpMod Str TupleLoad NameLoad decorator_list decorator_list Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr Str NameLoad keyword AttributeLoad NameLoad attr FunctionDef arguments args TupleStore NameStore defaults body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num orelse Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListLoad Str Str Str Assign NameStore CompareIsNot Call NameLoad NameLoad Str NameLoad NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If BoolOpAnd CompareIn NameLoad NameLoad UnaryOpNot NameLoad body Raise Call NameLoad BinOpMod Str NameLoad If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body Raise Call NameLoad Str Assign NameStore ListLoad FunctionDef arguments args defaults body TryFinally body Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str ImportFrom alias If CompareNotEq NameLoad Str body Raise Call NameLoad Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr attr attr Assign NameStore TupleLoad Str BinOpMod Str TupleLoad AttributeLoad NameLoad attr Str Str Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body TryFinally body Expr Call NameLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr decorator_list decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr Str Str Call AttributeLoad Str attr NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr ClassDef bases NameLoad body Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr Str Str keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad keyword Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore AttributeLoad Call AttributeLoad Call NameLoad NameLoad attr Str attr If Call AttributeLoad NameLoad attr body Assign NameStore Str orelse Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Dict Num Num Num Call NameLoad Call NameLoad Call NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad decorator_list decorator_list Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr Str NameLoad keyword AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Return Call AttributeLoad SubscriptLoad NameLoad Index Num attr Lambda arguments args NameParam defaults NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Return Call AttributeLoad SubscriptLoad NameLoad Index Num attr Lambda arguments args NameParam defaults NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore ListLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad BinOpMod Str TupleLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad BinOpMod Str TupleLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad BinOpMod Str TupleLoad NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad decorator_list decorator_list Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr FunctionDef arguments args TupleStore NameStore defaults body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad ListLoad Num Num Num decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore ListLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad BinOpMod Str TupleLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If CompareEq Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad BinOpMod Str TupleLoad NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr FunctionDef arguments args TupleStore NameStore defaults body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad BinOpMod Str TupleLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Return NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad ListLoad Num Num Num decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr Str BinOpMod Str TupleLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args TupleStore NameStore NameStore NameStore defaults body Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore ListLoad Str Str Str Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call NameLoad NameLoad Call NameLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpAdd ListLoad Str NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list Expr Call AttributeLoad Call NameLoad attr Call AttributeLoad NameLoad attr ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad If Call AttributeLoad NameLoad attr body Assign NameStore Str orelse If Call AttributeLoad NameLoad attr body Assign NameStore Dict Str Str decorator_list Expr Call AttributeLoad Call NameLoad attr Call AttributeLoad NameLoad attr ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str ImportFrom alias Expr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num decorator_list decorator_list
N/A N/A 
Tests for implementations of L{IReactorProcess}.
 N/A __metaclass__ type N/A os sys signal threading twisted.trial.unittest TestCase SkipTest twisted.internet.test.reactormixins ReactorBuilder twisted.python.compat set twisted.python.log msg err twisted.python.runtime platform twisted.python.filepath FilePath twisted.internet utils twisted.internet.interfaces IReactorProcess IProcessTransport twisted.internet.defer Deferred succeed twisted.internet.protocol ProcessProtocol twisted.internet.error ProcessDone ProcessTerminated twisted.internet _signals _ShutdownCallbackProcessProtocol N/A ProcessProtocol N/A N/A 
    An L{IProcessProtocol} which fires a Deferred when the process it is
    associated with ends.

    @ivar received: A C{dict} mapping file descriptors to lists of bytes
        received from the child process on those file descriptors.
     __init__ N/A N/A self whenFinished N/A N/A N/A N/A self whenFinished whenFinished N/A N/A self received N/A N/A childDataReceived N/A N/A self fd bytes N/A N/A N/A N/A N/A N/A N/A N/A self received setdefault fd N/A append bytes N/A processEnded N/A N/A self reason N/A N/A N/A N/A N/A N/A self whenFinished callback None N/A N/A ProcessTestsBuilderBase N/A ReactorBuilder N/A N/A 
    Base class for L{IReactorProcess} tests which defines some tests which
    can be applied to PTY or non-PTY uses of C{spawnProcess}.

    Subclasses are expected to set the C{usePTY} attribute to C{True} or
    C{False}.
     N/A requiredInterfaces N/A IReactorProcess test_processTransportInterface N/A N/A self N/A N/A N/A 
        L{IReactorProcess.spawnProcess} connects the protocol passed to it
        to a transport which provides L{IProcessTransport}.
         N/A ended N/A Deferred N/A protocol N/A _ShutdownCallbackProcessProtocol ended N/A reactor N/A N/A self buildReactor N/A transport N/A N/A reactor spawnProcess protocol N/A sys executable N/A N/A sys executable -c usePTY N/A self usePTY N/A N/A N/A self assertTrue N/A N/A IProcessTransport providedBy transport N/A N/A N/A ended addCallback N/A N/A N/A ignored N/A N/A N/A reactor stop N/A N/A N/A self runReactor reactor N/A _writeTest N/A N/A self write N/A N/A N/A 
        Helper for testing L{IProcessTransport} write functionality.  This
        method spawns a child process and gives C{write} a chance to write some
        bytes to it.  It then verifies that the bytes were actually written to
        it (by relying on the child process to echo them back).

        @param write: A two-argument callable.  This is invoked with a process
            transport and some bytes to write to it.
         N/A reactor N/A N/A self buildReactor N/A ended N/A Deferred N/A protocol N/A _ShutdownCallbackProcessProtocol ended N/A bytes N/A hello, world N/A os linesep N/A program import sys
sys.stdout.write(sys.stdin.readline())
 startup N/A N/A N/A N/A N/A transport N/A N/A reactor spawnProcess protocol N/A sys executable N/A N/A sys executable -c program N/A N/A N/A N/A write transport bytes N/A N/A N/A N/A N/A err None Unhandled exception while writing N/A N/A N/A transport signalProcess KILL N/A N/A N/A N/A reactor callWhenRunning startup N/A N/A N/A ended addCallback N/A N/A N/A ignored N/A N/A N/A reactor stop N/A N/A N/A self runReactor reactor N/A N/A N/A self assertEqual bytes N/A N/A join N/A N/A protocol received N/A 1 N/A test_write N/A N/A self N/A N/A N/A 
        L{IProcessTransport.write} writes the specified C{str} to the standard
        input of the child process.
         write N/A N/A transport bytes N/A N/A N/A N/A N/A transport write bytes N/A N/A N/A N/A self _writeTest write N/A test_writeSequence N/A N/A self N/A N/A N/A 
        L{IProcessTransport.writeSequence} writes the specified C{list} of
        C{str} to the standard input of the child process.
         write N/A N/A transport bytes N/A N/A N/A N/A N/A transport writeSequence N/A list bytes N/A N/A N/A N/A self _writeTest write N/A test_writeToChild N/A N/A self N/A N/A N/A 
        L{IProcessTransport.writeToChild} writes the specified C{str} to the
        specified file descriptor of the child process.
         write N/A N/A transport bytes N/A N/A N/A N/A N/A transport writeToChild 0 bytes N/A N/A N/A N/A self _writeTest write N/A test_writeToChildBadFileDescriptor N/A N/A self N/A N/A N/A 
        L{IProcessTransport.writeToChild} raises L{KeyError} if passed a file
        descriptor which is was not set up by L{IReactorProcess.spawnProcess}.
         write N/A N/A transport bytes N/A N/A N/A N/A N/A N/A N/A self assertRaises KeyError N/A transport writeToChild 13 bytes N/A N/A N/A N/A transport write bytes N/A N/A N/A N/A self _writeTest write N/A test_spawnProcessEarlyIsReaped N/A N/A self N/A N/A N/A 
        If, before the reactor is started with L{IReactorCore.run}, a
        process is started with L{IReactorProcess.spawnProcess} and
        terminates, the process is reaped once the reactor is started.
         N/A reactor N/A N/A self buildReactor N/A N/A self usePTY N/A N/A childFDs None N/A N/A childFDs N/A N/A signaled N/A N/A threading Event handler N/A N/A N/A args N/A N/A N/A N/A signaled set N/A N/A N/A N/A signal signal N/A signal SIGCHLD handler N/A ended N/A Deferred N/A N/A N/A reactor spawnProcess N/A _ShutdownCallbackProcessProtocol ended N/A sys executable N/A N/A sys executable -c usePTY N/A self usePTY childFDs childFDs N/A N/A N/A signaled wait 120 N/A N/A N/A N/A signaled isSet N/A N/A N/A N/A self fail Timed out waiting for child process to exit. N/A result N/A N/A N/A N/A ended addCallback N/A result append N/A result N/A N/A N/A N/A N/A ended addCallback N/A N/A N/A ignored N/A N/A N/A reactor stop N/A N/A N/A self runReactor reactor N/A N/A N/A self assertTrue result N/A N/A N/A N/A getattr signal SIGCHLD None None N/A N/A N/A test_spawnProcessEarlyIsReaped skip Platform lacks SIGCHLD, early-spawnProcess test can't work. test_processExitedWithSignal N/A N/A self N/A N/A N/A 
        The C{reason} argument passed to L{IProcessProtocol.processExited} is a
        L{ProcessTerminated} instance if the child process exits with a signal.
         N/A sigName TERM N/A sigNum N/A getattr signal N/A SIG sigName N/A exited N/A Deferred N/A source import sys
sys.stdout.write('x')
sys.stdout.flush()
sys.stdin.read()
 Exiter N/A ProcessProtocol N/A childDataReceived N/A N/A self fd data N/A N/A N/A N/A msg N/A childDataReceived(%d, %r) N/A fd data N/A N/A N/A N/A self transport signalProcess sigName N/A childConnectionLost N/A N/A self fd N/A N/A N/A N/A msg N/A childConnectionLost(%d) N/A fd N/A processExited N/A N/A self reason N/A N/A N/A N/A msg N/A processExited(%r) N/A reason N/A N/A N/A exited callback N/A reason N/A processEnded N/A N/A self reason N/A N/A N/A N/A msg N/A processEnded(%r) N/A reason N/A N/A N/A reactor N/A N/A self buildReactor N/A N/A N/A reactor callWhenRunning N/A reactor spawnProcess N/A Exiter N/A sys executable N/A N/A sys executable -c source usePTY N/A self usePTY cbExited N/A N/A N/A failure N/A N/A N/A N/A N/A failure trap ProcessTerminated N/A err N/A failure value N/A N/A N/A platform isWindows N/A N/A N/A N/A self assertIdentical N/A err signal None N/A N/A N/A self assertEqual N/A err exitCode 1 N/A N/A N/A N/A self assertEqual N/A err signal sigNum N/A N/A N/A self assertIdentical N/A err exitCode None N/A N/A N/A N/A exited addCallback cbExited N/A N/A N/A exited addErrback err N/A N/A N/A exited addCallback N/A N/A N/A ign N/A N/A N/A reactor stop N/A N/A N/A self runReactor reactor N/A test_systemCallUninterruptedByChildExit N/A N/A self N/A N/A N/A 
        If a child process exits while a system call is in progress, the system
        call should not be interfered with.  In particular, it should not fail
        with EINTR.

        Older versions of Twisted installed a SIGCHLD handler on POSIX without
        using the feature exposed by the SA_RESTART flag to sigaction(2).  The
        most noticable problem this caused was for blocking reads and writes to
        sometimes fail with EINTR.
         N/A reactor N/A N/A self buildReactor N/A skippedReactors N/A Glib2Reactor Gtk2Reactor PortableGtkReactor N/A hasSigInterrupt N/A N/A getattr signal siginterrupt None None N/A reactorClassName N/A N/A reactor __class__ __name__ N/A N/A N/A reactorClassName skippedReactors N/A hasSigInterrupt N/A N/A N/A SkipTest N/A %s is not supported without siginterrupt reactorClassName N/A N/A N/A N/A _signals installHandler __name__ _installHandlerUsingSignal N/A N/A N/A SkipTest _signals._installHandlerUsingSignal doesn't support this feature N/A result N/A f N/A N/A N/A N/A N/A N/A N/A f1 N/A N/A os popen N/A %s -c "import time; time.sleep(0.1)" N/A N/A sys executable N/A f2 N/A N/A os popen N/A %s -c "import time; time.sleep(0.5); print 'Foo'" N/A N/A sys executable N/A N/A N/A result append N/A N/A f2 read N/A N/A N/A N/A reactor stop N/A N/A N/A N/A reactor callWhenRunning f N/A N/A N/A self runReactor reactor N/A N/A N/A self assertEqual result N/A Foo
 N/A test_openFileDescriptors N/A N/A self N/A N/A N/A 
        A spawned process has only stdin, stdout and stderr open
        (file descriptor 3 is also reported as open, because of the call to
        'os.listdir()').
         twisted.python.runtime platformType N/A N/A platformType posix N/A N/A N/A SkipTest Test only applies to POSIX platforms N/A here N/A FilePath __file__ N/A top N/A N/A N/A N/A N/A N/A N/A N/A here parent parent parent parent N/A source N/A import sys N/A sys.path.insert(0, '%s') N/A N/A top path from twisted.internet import process sys.stdout.write(str(process._listOpenFDs())) sys.stdout.flush() checkOutput N/A N/A output N/A N/A N/A N/A N/A self assertEqual [0, 1, 2, 3] output N/A N/A reactor N/A N/A self buildReactor Protocol N/A ProcessProtocol N/A __init__ N/A N/A self N/A N/A N/A N/A self output N/A N/A outReceived N/A N/A self data N/A N/A N/A N/A N/A N/A self output append data N/A processEnded N/A N/A self reason N/A N/A N/A N/A N/A N/A checkOutput N/A N/A join N/A self output N/A N/A N/A N/A reactor stop N/A N/A N/A proto N/A Protocol N/A N/A N/A reactor callWhenRunning N/A reactor spawnProcess proto N/A sys executable N/A N/A sys executable -Wignore -c N/A N/A join source usePTY N/A self usePTY N/A N/A N/A self runReactor reactor N/A test_timelyProcessExited N/A N/A self N/A N/A N/A 
        If a spawned process exits, C{processExited} will be called in a
        timely manner.
         N/A reactor N/A N/A self buildReactor ExitingProtocol N/A ProcessProtocol N/A N/A exited False processExited N/A N/A protoSelf reason N/A N/A N/A N/A protoSelf exited True N/A N/A N/A reactor stop N/A N/A N/A self assertEqual N/A N/A reason value exitCode 0 N/A N/A N/A protocol N/A ExitingProtocol N/A N/A N/A reactor callWhenRunning N/A reactor spawnProcess protocol N/A sys executable N/A N/A sys executable -c raise SystemExit(0) usePTY N/A self usePTY N/A N/A N/A self runReactor reactor timeout 30 N/A N/A N/A self assertEqual N/A protocol exited True N/A N/A ProcessTestsBuilder N/A ProcessTestsBuilderBase N/A N/A 
    Builder defining tests relating to L{IReactorProcess} for child processes
    which do not have a PTY.
     N/A usePTY False N/A keepStdioOpenProgram N/A N/A N/A N/A FilePath __file__ sibling process_helper.py path N/A N/A N/A platform isWindows N/A N/A keepStdioOpenArg windows N/A N/A keepStdioOpenArg test_childConnectionLost N/A N/A self N/A N/A N/A 
        L{IProcessProtocol.childConnectionLost} is called each time a file
        descriptor associated with a child process is closed.
         N/A connected N/A Deferred N/A lost N/A 0 1 2 N/A Deferred N/A Deferred N/A Deferred Closer N/A ProcessProtocol N/A makeConnection N/A N/A self transport N/A N/A N/A N/A N/A connected callback transport N/A childConnectionLost N/A N/A self childFD N/A N/A N/A N/A N/A N/A lost N/A childFD callback None N/A N/A N/A source import os, sys
while 1:
    line = sys.stdin.readline().strip()
    if not line:
        break
    os.close(int(line))
 N/A reactor N/A N/A self buildReactor N/A N/A N/A reactor callWhenRunning N/A reactor spawnProcess N/A Closer N/A sys executable N/A N/A sys executable -c source usePTY N/A self usePTY cbConnected N/A N/A transport N/A N/A N/A N/A N/A transport write 2
 N/A N/A N/A N/A lost N/A 2 addCallback N/A N/A N/A ign N/A transport N/A N/A N/A N/A connected addCallback cbConnected lostSecond N/A N/A transport N/A N/A N/A N/A N/A transport write 1
 N/A N/A N/A N/A lost N/A 1 addCallback N/A N/A N/A ign N/A transport N/A N/A N/A N/A connected addCallback lostSecond lostFirst N/A N/A transport N/A N/A N/A N/A N/A transport write N/A N/A N/A N/A connected addCallback lostFirst N/A N/A N/A connected addErrback err cbEnded N/A N/A ignored N/A N/A N/A N/A N/A reactor stop N/A N/A N/A N/A connected addCallback cbEnded N/A N/A N/A self runReactor reactor N/A test_processEnded N/A N/A self N/A N/A N/A 
        L{IProcessProtocol.processEnded} is called after the child process
        exits and L{IProcessProtocol.childConnectionLost} is called for each of
        its file descriptors.
         N/A ended N/A Deferred N/A lost N/A Ender N/A ProcessProtocol N/A childDataReceived N/A N/A self fd data N/A N/A N/A N/A msg N/A childDataReceived(%d, %r) N/A fd data N/A N/A N/A N/A self transport loseConnection N/A childConnectionLost N/A N/A self childFD N/A N/A N/A N/A msg N/A childConnectionLost(%d) N/A childFD N/A N/A N/A lost append childFD N/A processExited N/A N/A self reason N/A N/A N/A N/A msg N/A processExited(%r) N/A reason N/A processEnded N/A N/A self reason N/A N/A N/A N/A msg N/A processEnded(%r) N/A reason N/A N/A N/A ended callback N/A reason N/A N/A N/A reactor N/A N/A self buildReactor N/A N/A N/A reactor callWhenRunning N/A reactor spawnProcess N/A Ender N/A sys executable N/A N/A sys executable N/A self keepStdioOpenProgram child N/A self keepStdioOpenArg usePTY N/A self usePTY cbEnded N/A N/A N/A failure N/A N/A N/A N/A N/A failure trap ProcessDone N/A N/A N/A self assertEqual N/A set lost N/A set N/A 0 1 2 N/A N/A N/A N/A ended addCallback cbEnded N/A N/A N/A ended addErrback err N/A N/A N/A ended addCallback N/A N/A N/A ign N/A N/A N/A reactor stop N/A N/A N/A self runReactor reactor N/A test_processExited N/A N/A self N/A N/A N/A 
        L{IProcessProtocol.processExited} is called when the child process
        exits, even if file descriptors associated with the child are still
        open.
         N/A exited N/A Deferred N/A allLost N/A Deferred N/A lost N/A Waiter N/A ProcessProtocol N/A childDataReceived N/A N/A self fd data N/A N/A N/A N/A msg N/A childDataReceived(%d, %r) N/A fd data N/A childConnectionLost N/A N/A self childFD N/A N/A N/A N/A msg N/A childConnectionLost(%d) N/A childFD N/A N/A N/A lost append childFD N/A N/A N/A len lost 3 N/A N/A N/A N/A allLost callback None N/A processExited N/A N/A self reason N/A N/A N/A N/A msg N/A processExited(%r) N/A reason N/A N/A N/A exited callback N/A reason N/A N/A N/A N/A self transport loseConnection N/A N/A N/A reactor N/A N/A self buildReactor N/A N/A N/A reactor callWhenRunning N/A reactor spawnProcess N/A Waiter N/A sys executable N/A N/A sys executable N/A self keepStdioOpenProgram child N/A self keepStdioOpenArg usePTY N/A self usePTY cbExited N/A N/A N/A failure N/A N/A N/A N/A N/A failure trap ProcessDone N/A N/A msg N/A cbExited; lost = %s N/A lost N/A N/A N/A self assertEqual lost N/A N/A allLost N/A N/A N/A N/A exited addCallback cbExited cbAllLost N/A N/A ignored N/A N/A N/A N/A N/A self assertEqual N/A set lost N/A set N/A 0 1 2 N/A N/A N/A N/A exited addCallback cbAllLost N/A N/A N/A exited addErrback err N/A N/A N/A exited addCallback N/A N/A N/A ign N/A N/A N/A reactor stop N/A N/A N/A self runReactor reactor N/A makeSourceFile N/A N/A self sourceLines N/A N/A N/A 
        Write the given list of lines to a text file and return the absolute
        path to it.
         N/A script N/A N/A self mktemp N/A scriptFile N/A file script wt N/A N/A N/A scriptFile write N/A N/A N/A N/A os linesep join sourceLines N/A os linesep N/A N/A N/A scriptFile close N/A N/A N/A N/A os path abspath script N/A test_shebang N/A N/A self N/A N/A N/A 
        Spawning a process with an executable which is a script starting
        with an interpreter definition line (#!) uses that interpreter to
        evaluate the script.
         N/A SHEBANG_OUTPUT this is the shebang output N/A scriptFile N/A N/A self makeSourceFile N/A N/A #!%s N/A N/A sys executable import sys N/A sys.stdout.write('%s') N/A SHEBANG_OUTPUT sys.stdout.flush() N/A N/A N/A os chmod scriptFile 448 N/A reactor N/A N/A self buildReactor cbProcessExited N/A N/A N/A out err code N/A N/A N/A N/A msg N/A cbProcessExited((%r, %r, %d)) N/A out err code N/A N/A N/A self assertEqual out SHEBANG_OUTPUT N/A N/A N/A self assertEqual err N/A N/A N/A self assertEqual code 0 N/A shutdown N/A N/A passthrough N/A N/A N/A N/A N/A reactor stop N/A passthrough N/A start N/A N/A N/A N/A N/A d N/A N/A utils getProcessOutputAndValue scriptFile reactor reactor N/A N/A N/A d addBoth shutdown N/A N/A N/A d addCallback cbProcessExited N/A N/A N/A d addErrback err N/A N/A N/A N/A reactor callWhenRunning start N/A N/A N/A self runReactor reactor N/A test_processCommandLineArguments N/A N/A self N/A N/A N/A 
        Arguments given to spawnProcess are passed to the child process as
        originally intended.
         N/A source import sys, os
try:
  import msvcrt
  msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)
except ImportError:
  pass
for arg in sys.argv[1:]:
  sys.stdout.write(arg + chr(0))
  sys.stdout.flush() N/A args N/A hello "  	|<>^& "\\"hello\\" "foo\ bar baz\"" N/A N/A N/A args append N/A N/A join N/A map chr N/A xrange 1 256 N/A reactor N/A N/A self buildReactor processFinished N/A N/A output N/A N/A N/A output N/A N/A output split N/A N/A N/A output pop N/A N/A N/A self assertEqual args output N/A shutdown N/A N/A result N/A N/A N/A N/A N/A reactor stop N/A result N/A spawnChild N/A N/A N/A N/A N/A d N/A succeed None N/A N/A N/A d addCallback N/A N/A N/A dummy N/A N/A N/A utils getProcessOutput N/A sys executable N/A N/A -c source args reactor reactor N/A N/A N/A d addCallback processFinished N/A N/A N/A d addBoth shutdown N/A N/A N/A N/A reactor callWhenRunning spawnChild N/A N/A N/A self runReactor reactor N/A N/A N/A N/A N/A N/A globals update N/A N/A ProcessTestsBuilder makeTestCaseClasses PTYProcessTestsBuilder N/A ProcessTestsBuilderBase N/A N/A 
    Builder defining tests relating to L{IReactorProcess} for child processes
    which have a PTY.
     N/A usePTY True N/A N/A N/A platform isWindows N/A N/A skip PTYs are not supported on Windows. N/A N/A N/A N/A platform isMacOSX N/A N/A skippedReactors N/A twisted.internet.pollreactor.PollReactor OS X's poll() does not support PTYs N/A N/A N/A N/A N/A globals update N/A N/A PTYProcessTestsBuilder makeTestCaseClasses PotentialZombieWarningTests N/A TestCase N/A N/A 
    Tests for L{twisted.internet.error.PotentialZombieWarning}.
     test_deprecated N/A N/A self N/A N/A N/A 
        Accessing L{PotentialZombieWarning} via the
        I{PotentialZombieWarning} attribute of L{twisted.internet.error}
        results in a deprecation warning being emitted.
         twisted.internet error N/A N/A error PotentialZombieWarning N/A warnings N/A N/A self flushWarnings N/A N/A self test_deprecated N/A N/A N/A self assertEqual N/A N/A warnings N/A 0 N/A category DeprecationWarning N/A N/A N/A self assertEqual N/A N/A warnings N/A 0 N/A message twisted.internet.error.PotentialZombieWarning was deprecated in Twisted 10.0.0: There is no longer any potential for zombie process. N/A N/A N/A self assertEqual N/A len warnings 1 N/A N/A