Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/dist-packages/twisted/test/
Upload File :
Current File : //usr/lib/python2.7/dist-packages/twisted/test/stdio_test_loseconn.pyc

ó
[³XMc@sñdZddlZddlmZddlmZmZddlmZm	Z	dej
fd„ƒYZedkríej
ejd	ƒjƒe	jeejd
dƒƒddlmZeƒZejeƒejƒejejƒndS(
s½
Main program for the child process run by
L{twisted.test.test_stdio.StandardInputOutputTestCase.test_loseConnection} to
test that ITransport.loseConnection() works for process transports.
iÿÿÿÿN(tConnectionDone(tstdiotprotocol(treflecttlogt
LoseConnChildcBs eZdZd„Zd„ZRS(icCs|jjƒdS(N(t	transporttloseConnection(tself((sD/usr/lib/python2.7/dist-packages/twisted/test/stdio_test_loseconn.pytconnectionMadescCsJz8y|jtƒWn tjddƒd|_nXWdtjƒXdS(s
        Check that C{reason} is a L{Failure} wrapping a L{ConnectionDone}
        instance and stop the reactor.  If C{reason} is wrong for some reason,
        log something about that in C{self.errorLogFile} and make sure the
        process exits with a non-zero status.
        s,Problem with reason passed to connectionLostiN(ttrapRRterrtNonetexitCodetreactortstop(Rtreason((sD/usr/lib/python2.7/dist-packages/twisted/test/stdio_test_loseconn.pytconnectionLosts(t__name__t
__module__R
R	R(((sD/usr/lib/python2.7/dist-packages/twisted/test/stdio_test_loseconn.pyRs	t__main__iitw(R(t__doc__tsysttwisted.internet.errorRttwisted.internetRRttwisted.pythonRRtProtocolRRtnamedAnytargvtinstalltstartLoggingtfileRt
StandardIOtruntexitR
(((sD/usr/lib/python2.7/dist-packages/twisted/test/stdio_test_loseconn.pyt<module>	s