403Webshell
Server IP : 61.19.30.66  /  Your IP : 216.73.216.15
Web Server : Apache/2.2.22 (Ubuntu)
System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64
User : www-data ( 33)
PHP Version : 5.3.10-1ubuntu3.48
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python2.7/dist-packages/twisted/internet/test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyc
ó
ƇNc@s¸dZeZddlZddlZddlZddlZddlmZm	Z	ddl
mZddlm
Z
ddlmZmZddlmZddlmZdd	lmZdd
lmZmZddlmZmZddlmZdd
lm Z m!Z!ddlm"Z"defd„ƒYZ#defd„ƒYZ$de$fd„ƒYZ%e&ƒj'e%j(ƒƒde$fd„ƒYZ)e&ƒj'e)j(ƒƒdefd„ƒYZ*dS(s2
Tests for implementations of L{IReactorProcess}.
iÿÿÿÿN(tTestCasetSkipTest(tReactorBuilder(tset(tmsgterr(tplatform(tFilePath(tutils(tIReactorProcesstIProcessTransport(tDeferredtsucceed(tProcessProtocol(tProcessDonetProcessTerminated(t_signalst _ShutdownCallbackProcessProtocolcBs)eZdZd„Zd„Zd„ZRS(sõ
    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.
    cCs||_i|_dS(N(twhenFinishedtreceived(tselfR((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyt__init__#s	cCs |jj|gƒj|ƒdS(N(Rt
setdefaulttappend(Rtfdtbytes((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pytchildDataReceived(scCs|jjdƒdS(N(RtcallbacktNone(Rtreason((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pytprocessEnded,s(t__name__t
__module__t__doc__RRR(((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyRs		tProcessTestsBuilderBasecBs•eZdZegZd„Zd„Zd„Zd„Zd„Z	d„Z
d„Zee
dd
ƒd
krxd	e_nd
„Zd„Zd„ZRS(sæ
    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}.
    cs‹tƒ}t|ƒ}|jƒ‰ˆj|tjtjddgd|jƒ}|jtj	|ƒƒ|j
‡fd†ƒ|jˆƒdS(s
        L{IReactorProcess.spawnProcess} connects the protocol passed to it
        to a transport which provides L{IProcessTransport}.
        s-cttusePTYcs
ˆjƒS(N(tstop(tignored(treactor(sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyt<lambda>SsN(RRtbuildReactortspawnProcesstsyst
executableR$t
assertTrueR
t
providedBytaddCallbackt
runReactor(Rtendedtprotocolt	transport((R'sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyttest_processTransportInterface<s		cs£|jƒ‰tƒ}t|ƒ‰dtj‰d‰‡‡‡‡‡fd†}ˆj|ƒ|j‡fd†ƒ|jˆƒ|jˆdj	ˆj
dƒƒdS(s¸
        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.
        shello, worlds2import sys
sys.stdout.write(sys.stdin.readline())
cs]ˆjˆtjtjdˆgƒ}yˆ|ˆƒWn!tddƒ|jdƒnXdS(Ns-cs!Unhandled exception while writingtKILL(R*R+R,RRt
signalProcess(R3(twriteR2R'Rtprogram(sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pytstartupls
cs
ˆjƒS(N(R%(R&(R'(sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyR(vsR#iN(R)RRtostlineseptcallWhenRunningR/R0tassertEqualtjoinR(RR7R1R9((R2R'RR7R8sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyt
_writeTestWs
	


cCsd„}|j|ƒdS(s|
        L{IProcessTransport.write} writes the specified C{str} to the standard
        input of the child process.
        cSs|j|ƒdS(N(R7(R3R((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyR7sN(R?(RR7((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyt
test_write|s	cCsd„}|j|ƒdS(s
        L{IProcessTransport.writeSequence} writes the specified C{list} of
        C{str} to the standard input of the child process.
        cSs|jt|ƒƒdS(N(t
writeSequencetlist(R3R((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyR7‹sN(R?(RR7((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyttest_writeSequence†s	cCsd„}|j|ƒdS(sŽ
        L{IProcessTransport.writeToChild} writes the specified C{str} to the
        specified file descriptor of the child process.
        cSs|jd|ƒdS(Ni(twriteToChild(R3R((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyR7•sN(R?(RR7((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyttest_writeToChilds	cs ‡fd†}ˆj|ƒdS(s¦
        L{IProcessTransport.writeToChild} raises L{KeyError} if passed a file
        descriptor which is was not set up by L{IReactorProcess.spawnProcess}.
        cs2zˆjt|jd|ƒWd|j|ƒXdS(Ni
(tassertRaisestKeyErrorRDR7(R3R(R(sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyR7ŸsN(R?(RR7((RsF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyt"test_writeToChildBadFileDescriptoršscs|jƒ‰|jrd}ni}tjƒ‰‡fd†}tjtj|ƒtƒ}ˆjt	|ƒt
jt
jddgd|jd|ƒˆjdƒˆj
ƒs»|jdƒng}|j|jƒ|rÛdS|j‡fd	†ƒ|jˆƒ|j|ƒdS(
sÚ
        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.
        csˆjƒdS(N(R(targs(tsignaled(sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pythandler»ss-cR#R$tchildFDsixs,Timed out waiting for child process to exit.Ncs
ˆjƒS(N(R%(R&(R'(sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyR(Øs(R)R$Rt	threadingtEventtsignaltSIGCHLDRR*RR+R,twaittisSettfailR/RR0R-(RRLRKR1tresult((R'RJsF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyttest_spawnProcessEarlyIsReaped¨s*			"

RPs;Platform lacks SIGCHLD, early-spawnProcess test can't work.csÚd‰ttdˆƒ‰tƒ‰d}dtf‡‡fd†ƒY}ˆjƒ‰ˆjˆj|ƒtjtjd|gdˆj	ƒ‡‡fd†}ˆj
|ƒˆjtƒˆj
‡fd	†ƒˆj
ˆƒd
S(s©
        The C{reason} argument passed to L{IProcessProtocol.processExited} is a
        L{ProcessTerminated} instance if the child process exits with a signal.
        tTERMtSIGsEimport sys
sys.stdout.write('x')
sys.stdout.flush()
sys.stdin.read()
tExitercs8eZ‡fd†Zd„Z‡fd†Zd„ZRS(cs(td||fƒ|jjˆƒdS(NschildDataReceived(%d, %r)(RR3R6(RRtdata(tsigName(sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyR÷scSstd|fƒdS(NschildConnectionLost(%d)(R(RR((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pytchildConnectionLostûscs%td|fƒˆj|gƒdS(NsprocessExited(%r)(RR(RR(texited(sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyt
processExitedþscSstd|fƒdS(NsprocessEnded(%r)(R(RR((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyRs(RR RR[R]R((RZR\(sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyRXös		s-cR$cs~|\}|jtƒ|j}tjƒrTˆj|jdƒˆj|j	dƒn&ˆj|jˆƒˆj|j	dƒdS(Ni(
ttrapRtvalueRt	isWindowstassertIdenticalRORR=texitCode(t.0tfailureR(RtsigNum(sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pytcbExiteds
	cs
ˆjƒS(N(R%(tign(R'(sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyR(#sN(tgetattrRORR
R)R<R*R+R,R$R/t
addErrbackRR0(RtsourceRXRf((RZR\ReRR'sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyttest_processExitedWithSignalãs	


csÏ|jƒ‰dddg}ttdd
ƒd
k	}ˆjj}||kre|retd|ƒ‚ntjjdkr†tdƒ‚ng‰‡‡fd†}ˆj	|ƒ|j
ˆƒ|jˆd	gƒd
S(sÎ
        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.
        tGlib2ReactortGtk2ReactortPortableGtkReactortsiginterrupts(%s is not supported without siginterruptt_installHandlerUsingSignals@_signals._installHandlerUsingSignal doesn't support this featurecs[zItjdtjfƒ}tjdtjfƒ}ˆj|jƒƒWdˆjƒXdS(Ns$%s -c "import time; time.sleep(0.1)"s1%s -c "import time; time.sleep(0.5); print 'Foo'"(R:tpopenR+R,RtreadR%(tf1tf2(R'RT(sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pytfDs		sFoo
N(R)RhRORt	__class__RRRtinstallHandlerR<R0R=(RtskippedReactorsthasSigInterrupttreactorClassNameRu((R'RTsF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyt'test_systemCallUninterruptedByChildExit(s


c	sddlm}|dkr+tdƒ‚nttƒ}|jƒjƒjƒjƒ}dd|jfddd	f}‡fd
†‰ˆjƒ‰dtf‡‡fd†ƒY}|ƒ}ˆj	ˆj
|tjtjd
ddj
|ƒgdˆjƒˆjˆƒdS(s¯
        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()').
        iÿÿÿÿ(tplatformTypetposixs$Test only applies to POSIX platformss
import sysssys.path.insert(0, '%s')s$from twisted.internet import processs-sys.stdout.write(str(process._listOpenFDs()))ssys.stdout.flush()csˆjd|ƒdS(Ns[0, 1, 2, 3](R=(toutput(R(sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pytcheckOutputistProtocolcs,eZd„Zd„Z‡‡fd†ZRS(cSs
g|_dS(N(R~(R((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyRoscSs|jj|ƒdS(N(R~R(RRY((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pytoutReceivedrscs,zˆdj|jƒƒWdˆjƒXdS(NR#(R>R~R%(RR(RR'(sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyRus(RR RRR((R'R(sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyR€ns		s-Wignores-cs
R$N(ttwisted.python.runtimeR|RRt__file__tparenttpathR)R
R<R*R+R,R>R$R0(RR|therettopRjR€tproto((R'RRsF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyttest_openFileDescriptorsVs&
	
	
N(RR R!R	trequiredInterfacesR4R?R@RCRERHRURhRORtskipRkR{R‰(((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyR"1s			%	
	
	
		6	E	.tProcessTestsBuildercBs}eZdZeZeeƒjdƒjZ	e
jƒr?dZndZd„Z
d„Zd„Zd„Zd„Zd	„ZRS(
sp
    Builder defining tests relating to L{IReactorProcess} for child processes
    which do not have a PTY.
    sprocess_helper.pytwindowsR#cstƒ‰itƒd6tƒd6tƒd6‰dtf‡‡fd†ƒY}d}|jƒ‰ˆjˆj|ƒtjtjd|gd|jƒ‡fd	†}ˆj|ƒ‡fd
†}ˆj|ƒd„}ˆj|ƒˆj	t
ƒ‡fd†}ˆj|ƒ|jˆƒd
S(s’
        L{IProcessProtocol.childConnectionLost} is called each time a file
        descriptor associated with a child process is closed.
        iiitClosercs&eZ‡fd†Z‡fd†ZRS(csˆj|ƒdS(N(R(RR3(t	connected(sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pytmakeConnectionœscsˆ|jdƒdS(N(RR(RtchildFD(tlost(sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyR[Ÿs(RR RR[((RR’(sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyRŽ›sswimport os, sys
while 1:
    line = sys.stdin.readline().strip()
    if not line:
        break
    os.close(int(line))
s-cR$cs'ˆjdƒˆdj‡fd†ƒS(Ns2
icsˆS(N((Rg(R3(sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyR(±s(R7R/(R3(R’(R3sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pytcbConnected¯s
cs'ˆjdƒˆdj‡fd†ƒS(Ns1
icsˆS(N((Rg(R3(sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyR(¶s(R7R/(R3(R’(R3sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyt
lostSecond´s
cSs|jdƒdS(Ns
(R7(R3((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyt	lostFirst¹scsˆjƒdS(N(R%(R&(R'(sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pytcbEnded¾sN(RR
R)R<R*R+R,R$R/RiRR0(RRŽRjR“R”R•R–((R'R’RsF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyttest_childConnectionLost“s$	$

	


csÊtƒ‰g‰dtf‡‡fd†ƒY}ˆjƒ‰ˆjˆj|ƒtjtjˆjdˆjgdˆj	ƒ‡‡fd†}ˆj
|ƒˆjtƒˆj
‡fd†ƒˆj
ˆƒdS(sÂ
        L{IProcessProtocol.processEnded} is called after the child process
        exits and L{IProcessProtocol.childConnectionLost} is called for each of
        its file descriptors.
        tEndercs8eZd„Z‡fd†Zd„Z‡fd†ZRS(cSs%td||fƒ|jjƒdS(NschildDataReceived(%d, %r)(RR3tloseConnection(RRRY((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyRÐscs"td|fƒˆj|ƒdS(NschildConnectionLost(%d)(RR(RR‘(R’(sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyR[ÔscSstd|fƒdS(NsprocessExited(%r)(R(RR((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyR]Øscs%td|fƒˆj|gƒdS(NsprocessEnded(%r)(RR(RR(R1(sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyRÛs(RR RR[R]R((R’R1(sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyR˜Ïs		tchildR$cs?|\}|jtƒˆjtˆƒtdddgƒƒdS(Niii(R^RR=R(RcRd(R’R(sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyR–æs
cs
ˆjƒS(N(R%(Rg(R'(sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyR(ìsN(RR
R)R<R*R+R,tkeepStdioOpenProgramtkeepStdioOpenArgR$R/RiRR0(RR˜R–((R'R’RR1sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyttest_processEndedÆs	


csøtƒ‰tƒ‰g‰dtf‡‡‡fd†ƒY}ˆjƒ‰ˆjˆj|ƒtjtjˆjdˆjgdˆj	ƒ‡‡‡fd†}ˆj
|ƒ‡‡fd†}ˆj
|ƒˆjtƒˆj
‡fd†ƒˆj
ˆƒdS(	s®
        L{IProcessProtocol.processExited} is called when the child process
        exits, even if file descriptors associated with the child are still
        open.
        tWaitercs2eZd„Z‡‡fd†Z‡fd†ZRS(cSstd||fƒdS(NschildDataReceived(%d, %r)(R(RRRY((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyRÿscsDtd|fƒˆj|ƒtˆƒdkr@ˆjdƒndS(NschildConnectionLost(%d)i(RRtlenRR(RR‘(R’tallLost(sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyR[s
cs2td|fƒˆj|gƒ|jjƒdS(NsprocessExited(%r)(RRR3R™(RR(R\(sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyR]s(RR RR[R]((R’R R\(sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyRžþs	RšR$cs;|\}|jtƒtdˆfƒˆjˆgƒˆS(NscbExited; lost = %s(R^RRR=(RcRd(R’RR (sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyRfs

cs)ˆjtˆƒtdddgƒƒdS(Niii(R=R(R&(RR’(sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyt	cbAllLostscs
ˆjƒS(N(R%(Rg(R'(sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyR(!sN(RR
R)R<R*R+R,R›RœR$R/RiRR0(RRžRfR¡((R'R’RR R\sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyttest_processExitedôs"		"



cCsU|jƒ}t|dƒ}|jtjj|ƒtjƒ|jƒtjj|ƒS(sj
        Write the given list of lines to a text file and return the absolute
        path to it.
        twt(	tmktemptfileR7R:R;R>tcloseR…tabspath(RtsourceLinestscriptt
scriptFile((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pytmakeSourceFile&s
 
cs¥d‰ˆjdtjfddˆfdgƒ‰tjˆdƒˆjƒ‰‡‡fd†‰‡fd†‰‡‡‡‡fd	†}ˆj|ƒˆjˆƒd
S(s¹
        Spawning a process with an executable which is a script starting
        with an interpreter definition line (#!) uses that interpreter to
        evaluate the script.
        sthis is the shebang outputs#!%ss
import sysssys.stdout.write('%s')ssys.stdout.flush()iÀcsZ|\}}}td|||fƒˆj|ˆƒˆj|dƒˆj|dƒdS(NscbProcessExited((%r, %r, %d))R#i(RR=(RctoutRtcode(RtSHEBANG_OUTPUT(sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pytcbProcessExitedCs
csˆjƒ|S(N(R%(tpassthrough(R'(sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pytshutdownIs
cs@tjˆdˆƒ}|jˆƒ|jˆƒ|jtƒdS(NR'(RtgetProcessOutputAndValuetaddBothR/RiR(td(R'R¯RªR±(sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pytstartMs

N(R«R+R,R:tchmodR)R<R0(RRµ((R'RR¯RªR±R®sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyttest_shebang2s


cs©d‰dddddg‰ˆjdjtttdd	ƒƒƒƒˆjƒ‰‡‡fd
†‰‡fd†‰‡‡‡‡‡fd†}ˆj|ƒˆjˆƒd
S(sq
        Arguments given to spawnProcess are passed to the child process as
        originally intended.
        sÀ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()thellot"s 	|<>^&s"\\"hello\\"s"foo\ bar baz\""R#iics-|jdƒ}|jƒˆjˆ|ƒdS(Nt(tsplittpopR=(R~(RRI(sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pytprocessFinishedps
csˆjƒ|S(N(R%(RT(R'(sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyR±vs
csFtdƒ}|j‡‡‡fd†ƒ|jˆƒ|jˆƒdS(Ncs#tjtjdˆgˆdˆƒS(Ns-cR'(RtgetProcessOutputR+R,(tdummy(R'RIRj(sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyR(|s(RRR/R³(R´(RIR½RjR±R'(sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyt
spawnChildzs
N(RR>tmaptchrtxrangeR)R<R0(RRÀ((R±R'RRIRjR½sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyt test_processCommandLineArgumentsWs	
(
(RR R!tFalseR$RRƒtsiblingR…R›RR`RœR—RR¢R«R·RÄ(((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyRŒƒs		3	.	2		%tPTYProcessTestsBuildercBsEeZdZeZejƒr'dZnejƒrCidd6Z	nRS(si
    Builder defining tests relating to L{IReactorProcess} for child processes
    which have a PTY.
    s"PTYs are not supported on Windows.s#OS X's poll() does not support PTYss(twisted.internet.pollreactor.PollReactor(
RR R!tTrueR$RR`R‹tisMacOSXRx(((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyRLJs	tPotentialZombieWarningTestscBseZdZd„ZRS(sE
    Tests for L{twisted.internet.error.PotentialZombieWarning}.
    cCsvddlm}|j|j|jgƒ}|j|ddtƒ|j|dddƒ|jt|ƒdƒdS(	s¾
        Accessing L{PotentialZombieWarning} via the
        I{PotentialZombieWarning} attribute of L{twisted.internet.error}
        results in a deprecation warning being emitted.
        iÿÿÿÿ(terroritcategorytmessages„twisted.internet.error.PotentialZombieWarning was deprecated in Twisted 10.0.0: There is no longer any potential for zombie process.iN(ttwisted.internetRËtPotentialZombieWarningt
flushWarningsttest_deprecatedR=tDeprecationWarningRŸ(RRËtwarnings((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyRÑœs(RR R!RÑ(((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyRʘs(+R!ttypet
__metaclass__R:R+RORMttwisted.trial.unittestRRt#twisted.internet.test.reactormixinsRttwisted.python.compatRttwisted.python.logRRR‚Rttwisted.python.filepathRRÎRttwisted.internet.interfacesR	R
ttwisted.internet.deferRRttwisted.internet.protocolR
ttwisted.internet.errorRRRRR"RŒtglobalstupdatetmakeTestCaseClassesRÇRÊ(((sF/usr/lib/python2.7/dist-packages/twisted/internet/test/test_process.pyt<module>s.0ÿSÿ


Youez - 2016 - github.com/yon3zu
LinuXploit