File: //lib/python3/dist-packages/twisted/runner/test/__pycache__/test_procmon.cpython-38.pyc
U
W[2[ � @ s� d Z ddlZddlmZ ddlmZmZ ddlmZm Z m
Z
ddlmZ ddl
mZ ddlmZ dd lmZ G d
d� de�ZG dd
� d
ee�ZG dd� dej�ZG dd� dej�ZdS )z&
Tests for L{twisted.runner.procmon}.
� N)�unittest)�LoggingProtocol�ProcessMonitor)�ProcessDone�ProcessTerminated�ProcessExitedAlready)�Clock)�Failure)�log)�
MemoryReactorc @ s6 e Zd ZdZdZdZdZddd�Zdd� Zd d
� Z dS )�DummyProcessa
An incomplete and fake L{IProcessTransport} implementation for testing how
L{ProcessMonitor} behaves when its monitored processes exit.
@ivar _terminationDelay: the delay in seconds after which the DummyProcess
will appear to exit when it receives a TERM signal
� Nr c C s@ || _ || _|| _|| _|| _|| _|| _|| _| | _|
| _ d S �N)
�proto�_reactorZ_executableZ_args�_environment�_pathZ_uidZ_gidZ_usePTYZ _childFDs)�self�reactor�
executable�argsZenvironment�pathr �uid�gid�usePTY�childFDs� r �B/usr/lib/python3/dist-packages/twisted/runner/test/test_procmon.py�__init__"