Module Expr Str ImportFrom alias alias Import alias alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Expr Str If CompareIs Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad body Assign NameStore Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore AttributeLoad NameLoad attr 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 Call AttributeLoad NameLoad attr ListLoad Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Str NameLoad Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Str NameLoad keyword NameLoad Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Str NameLoad Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str Str Str Str FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad BinOpAdd Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Str NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str Str Str Str Str Str FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list If Call AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr ListLoad Str NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str BinOpMod Str TupleLoad NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr Str attr Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr ListLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr NameLoad TupleLoad TupleLoad Str Call NameLoad keyword Str Expr Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad TupleLoad TupleLoad Str Str Dict TupleLoad TupleLoad Str Str Dict Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Lambda arguments args defaults NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr ListLoad Str ListComp SubscriptLoad NameLoad Index Str comprehension NameStore Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad TupleLoad TupleLoad Str Str Dict TupleLoad TupleLoad Str Str Dict Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Lambda arguments args defaults NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr ListLoad Str ListComp SubscriptLoad NameLoad Index Str comprehension NameStore Call AttributeLoad NameLoad attr decorator_list decorator_list If NameLoad body Delete NameDel
N/A N/A 
Test running processes with the APIs in L{twisted.internet.utils}.
 __future__ division absolute_import N/A warnings os stat sys signal twisted.python.compat _PY3 twisted.python.runtime platform twisted.trial unittest twisted.internet error reactor utils interfaces twisted.internet.defer Deferred twisted.python.test.test_util SuppressedWarningsTests ProcessUtilsTests N/A N/A unittest TestCase N/A N/A 
    Test running a process using L{getProcessOutput}, L{getProcessValue}, and
    L{getProcessOutputAndValue}.
     N/A N/A N/A N/A interfaces IReactorProcess reactor None None N/A N/A skip reactor doesn't implement IReactorProcess N/A output None N/A value None N/A exe N/A sys executable 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_output N/A N/A self N/A N/A N/A 
        L{getProcessOutput} returns a L{Deferred} which fires with the complete
        output of the process it runs after that process exits.
         N/A scriptFile N/A N/A self makeSourceFile N/A import sys for s in 'hello world\n':     sys.stdout.write(s)     sys.stdout.flush() N/A d N/A N/A utils getProcessOutput N/A self exe N/A -u scriptFile N/A N/A N/A d addCallback N/A self assertEqual hello world
 N/A test_outputWithErrorIgnored N/A N/A self N/A N/A N/A 
        The L{Deferred} returned by L{getProcessOutput} is fired with an
        L{IOError} L{Failure} if the child process writes to stderr.
         N/A scriptFile N/A N/A self makeSourceFile N/A import sys sys.stderr.write("hello world\n") N/A d N/A N/A utils getProcessOutput N/A self exe N/A -u scriptFile N/A d N/A N/A self assertFailure d IOError cbFailed N/A N/A err N/A N/A N/A N/A N/A self assertFailure N/A err processEnded N/A error ProcessDone N/A N/A N/A N/A d addCallback cbFailed N/A d N/A test_outputWithErrorCollected N/A N/A self N/A N/A N/A 
        If a C{True} value is supplied for the C{errortoo} parameter to
        L{getProcessOutput}, the returned L{Deferred} fires with the child's
        stderr output as well as its stdout output.
         N/A scriptFile N/A N/A self makeSourceFile N/A import sys sys.stdout.write("foo") sys.stdout.flush() sys.stderr.write("foo") sys.stderr.flush() N/A d N/A N/A utils getProcessOutput N/A self exe N/A -u scriptFile errortoo True N/A N/A N/A d addCallback N/A self assertEqual foofoo N/A test_value N/A N/A self N/A N/A N/A 
        The L{Deferred} returned by L{getProcessValue} is fired with the exit
        status of the child process.
         N/A scriptFile N/A N/A self makeSourceFile N/A raise SystemExit(1) N/A d N/A N/A utils getProcessValue N/A self exe N/A -u scriptFile N/A N/A N/A d addCallback N/A self assertEqual 1 N/A test_outputAndValue N/A N/A self N/A N/A N/A 
        The L{Deferred} returned by L{getProcessOutputAndValue} fires with a
        three-tuple, the elements of which give the data written to the child's
        stdout, the data written to the child's stderr, and the exit status of
        the child.
         N/A scriptFile N/A N/A self makeSourceFile N/A import sys sys.stdout.write('hello world!\n') sys.stderr.write('goodbye world!\n') sys.exit(1) gotOutputAndValue N/A N/A out_err_code N/A N/A N/A N/A out err code out_err_code N/A N/A N/A self assertEqual out hello world!
 N/A N/A N/A self assertEqual err N/A goodbye world! N/A os linesep N/A N/A N/A self assertEqual code 1 N/A N/A d N/A N/A utils getProcessOutputAndValue N/A self exe N/A -u scriptFile N/A N/A N/A d addCallback gotOutputAndValue N/A test_outputSignal N/A N/A self N/A N/A N/A 
        If the child process exits because of a signal, the L{Deferred}
        returned by L{getProcessOutputAndValue} fires a L{Failure} of a tuple
        containing the child's stdout, stderr, and the signal which caused
        it to exit.
         N/A scriptFile N/A N/A self makeSourceFile N/A import sys, os, signal sys.stdout.write('stdout bytes\n') sys.stderr.write('stderr bytes\n') sys.stdout.flush() sys.stderr.flush() os.kill(os.getpid(), signal.SIGKILL) gotOutputAndValue N/A N/A out_err_sig N/A N/A N/A N/A out err sig out_err_sig N/A N/A N/A self assertEqual out stdout bytes
 N/A N/A N/A self assertEqual err stderr bytes
 N/A N/A N/A self assertEqual sig N/A signal SIGKILL N/A N/A d N/A N/A utils getProcessOutputAndValue N/A self exe N/A -u scriptFile N/A d N/A N/A self assertFailure d tuple N/A N/A N/A d addCallback gotOutputAndValue N/A N/A N/A N/A platform isWindows N/A N/A N/A test_outputSignal skip Windows doesn't have real signals. _pathTest N/A N/A self utilFunc check N/A N/A N/A dir N/A N/A N/A os path abspath N/A N/A self mktemp N/A N/A N/A os makedirs dir N/A scriptFile N/A N/A self makeSourceFile N/A import os, sys sys.stdout.write(os.getcwd()) N/A d N/A utilFunc N/A self exe N/A -u scriptFile path dir N/A N/A N/A d addCallback check dir N/A d N/A test_getProcessOutputPath N/A N/A self N/A N/A N/A 
        L{getProcessOutput} runs the given command with the working directory
        given by the C{path} parameter.
         N/A N/A N/A self _pathTest N/A utils getProcessOutput N/A self assertEqual N/A test_getProcessValuePath N/A N/A self N/A N/A N/A 
        L{getProcessValue} runs the given command with the working directory
        given by the C{path} parameter.
         check N/A N/A result ignored N/A N/A N/A N/A N/A self assertEqual result 0 N/A N/A N/A N/A self _pathTest N/A utils getProcessValue check N/A test_getProcessOutputAndValuePath N/A N/A self N/A N/A N/A 
        L{getProcessOutputAndValue} runs the given command with the working
        directory given by the C{path} parameter.
         check N/A N/A out_err_status dir N/A N/A N/A N/A out err status out_err_status N/A N/A N/A self assertEqual out dir N/A N/A N/A self assertEqual status 0 N/A N/A N/A N/A self _pathTest N/A utils getProcessOutputAndValue check N/A _defaultPathTest N/A N/A self utilFunc check N/A N/A N/A dir N/A N/A N/A os path abspath N/A N/A self mktemp N/A N/A N/A os makedirs dir N/A scriptFile N/A N/A self makeSourceFile N/A import os, sys, stat N/A os.chmod(%r, stat.S_IXUSR) N/A dir sys.stdout.write(os.getcwd()) N/A N/A N/A self addCleanup N/A os chdir N/A N/A os getcwd N/A N/A N/A os chdir dir N/A N/A N/A self addCleanup N/A os chmod dir N/A N/A stat S_IMODE N/A N/A N/A os stat . st_mode N/A N/A N/A os chmod dir 0 N/A d N/A utilFunc N/A self exe N/A -u scriptFile N/A N/A N/A d addCallback check dir N/A d N/A test_getProcessOutputDefaultPath N/A N/A self N/A N/A N/A 
        If no value is supplied for the C{path} parameter, L{getProcessOutput}
        runs the given command in the same working directory as the parent
        process and succeeds even if the current working directory is not
        accessible.
         N/A N/A N/A self _defaultPathTest N/A utils getProcessOutput N/A self assertEqual N/A test_getProcessValueDefaultPath N/A N/A self N/A N/A N/A 
        If no value is supplied for the C{path} parameter, L{getProcessValue}
        runs the given command in the same working directory as the parent
        process and succeeds even if the current working directory is not
        accessible.
         check N/A N/A result ignored N/A N/A N/A N/A N/A self assertEqual result 0 N/A N/A N/A N/A self _defaultPathTest N/A utils getProcessValue check N/A test_getProcessOutputAndValueDefaultPath N/A N/A self N/A N/A N/A 
        If no value is supplied for the C{path} parameter,
        L{getProcessOutputAndValue} runs the given command in the same working
        directory as the parent process and succeeds even if the current
        working directory is not accessible.
         check N/A N/A out_err_status dir N/A N/A N/A N/A out err status out_err_status N/A N/A N/A self assertEqual out dir N/A N/A N/A self assertEqual status 0 N/A N/A N/A N/A self _defaultPathTest N/A utils getProcessOutputAndValue check N/A N/A SuppressWarningsTests N/A N/A unittest SynchronousTestCase N/A N/A 
    Tests for L{utils.suppressWarnings}.
     test_suppressWarnings N/A N/A self N/A N/A N/A 
        L{utils.suppressWarnings} decorates a function so that the given
        warnings are suppressed.
         N/A result N/A showwarning N/A N/A self N/A a kw N/A N/A N/A N/A result append N/A a kw N/A N/A N/A N/A self patch warnings showwarning showwarning f N/A N/A msg N/A N/A N/A N/A N/A warnings warn msg N/A N/A g N/A N/A utils suppressWarnings f N/A N/A ignore N/A dict message This is message N/A N/A f Sanity check message N/A N/A N/A self assertEqual N/A len result 1 N/A N/A g This is message N/A N/A N/A self assertEqual N/A len result 1 N/A N/A g Unignored message N/A N/A N/A self assertEqual N/A len result 2 N/A N/A DeferredSuppressedWarningsTests N/A SuppressedWarningsTests N/A N/A 
    Tests for L{utils.runWithWarningsSuppressed}, the version that supports
    Deferreds.
     N/A runWithWarningsSuppressed N/A staticmethod N/A utils runWithWarningsSuppressed test_deferredCallback N/A N/A self N/A N/A N/A 
        If the function called by L{utils.runWithWarningsSuppressed} returns a
        C{Deferred}, the warning filters aren't removed until the Deferred
        fires.
         N/A filters N/A N/A N/A ignore .*foo.* N/A N/A N/A ignore .*bar.* N/A N/A result N/A Deferred N/A N/A N/A self runWithWarningsSuppressed filters N/A N/A N/A N/A result N/A N/A N/A warnings warn ignore foo N/A N/A N/A result callback 3 N/A N/A N/A warnings warn ignore foo 2 N/A N/A N/A self assertEqual N/A ignore foo 2 N/A N/A w N/A message N/A w N/A N/A self flushWarnings N/A test_deferredErrback N/A N/A self N/A N/A N/A 
        If the function called by L{utils.runWithWarningsSuppressed} returns a
        C{Deferred}, the warning filters aren't removed until the Deferred
        fires with an errback.
         N/A filters N/A N/A N/A ignore .*foo.* N/A N/A N/A ignore .*bar.* N/A N/A result N/A Deferred N/A d N/A N/A self runWithWarningsSuppressed filters N/A N/A N/A N/A result N/A N/A N/A warnings warn ignore foo N/A N/A N/A result errback N/A ZeroDivisionError N/A N/A N/A d addErrback N/A N/A N/A f N/A N/A N/A f trap ZeroDivisionError N/A N/A N/A warnings warn ignore foo 2 N/A N/A N/A self assertEqual N/A ignore foo 2 N/A N/A w N/A message N/A w N/A N/A self flushWarnings N/A N/A N/A _PY3 N/A N/A ProcessUtilsTests