HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/lib/python3/dist-packages/twisted/test/__pycache__/stdio_test_loseconn.cpython-38.pyc
U

��W[�@s�dZddlmZmZddlZddlmZddlmZm	Z	ddl
mZmZGdd�de	j
�Zed	kr�e�ejd
���e�eejdd��dd
lmZe�Z	e�e	�e��e�e	j�dS)z�
Main program for the child process run by
L{twisted.test.test_stdio.StandardInputOutputTests.test_loseConnection} to
test that ITransport.loseConnection() works for process transports.
�)�absolute_import�divisionN)�ConnectionDone)�stdio�protocol)�reflect�logc@s eZdZdZdd�Zdd�ZdS)�
LoseConnChildrcCs|j��dS)N)Z	transportZloseConnection)�self�r�B/usr/lib/python3/dist-packages/twisted/test/stdio_test_loseconn.py�connectionMadeszLoseConnChild.connectionMadecCsBz2z|�t�Wnt�dd�d|_YnXW5t��XdS)a
        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.
        Nz,Problem with reason passed to connectionLost�)�reactor�stopZtraprr�err�exitCode)r
�reasonrrr�connectionLostszLoseConnChild.connectionLostN)�__name__�
__module__�__qualname__rr
rrrrrr	sr	�__main__r��wb)r)�__doc__Z
__future__rr�sysZtwisted.internet.errorrZtwisted.internetrrZtwisted.pythonrrZProtocolr	rZnamedAny�argv�installZstartLogging�openrZ
StandardIO�run�exitrrrrr�<module>s