File: //opt/alt/python37/lib/python3.7/site-packages/asynctest/__pycache__/_fail_on.cpython-37.pyc
B
�P�e� � @ sT d Z ddlmZ dZddd�ZG dd� d�Zdd � Zd
d� Zdd
d�Zddd�Z dS )a�
:class:`asynctest.TestCase` decorator which controls checks performed after
tests.
This module is separated from :mod:`asynctest.case` to avoid circular imports
in modules registering new checks.
To implement new checks:
* its name must be added in the ``DEFAULTS`` dict,
* a static method of the same name must be added to the :class:`_fail_on`
class,
* an optional static method named ``before_[name of the check]`` can be
added to :class:`_fail_on` to implement some set-up before the test runs.
A check may be only available on some platforms, activated by a conditional
import. In this case, ``DEFAULT`` and :class:`_fail_on` can be updated in the
module. There is an example in the :mod:`asynctest.selector` module.
� )�TimerHandleZ_asynctest_fail_onF)�unused_loop�active_handlesc @ sx e Zd Zddd�Zdd� Zddd�Zd d
� Zdd� Zd
d� Zdd� Z e
dd� �Ze
dd� �Ze
dd� �Ze
dd� �ZdS )�_fail_onNc C s |pi | _ d | _d S )N)�checks�_computed_checks)�selfr � r �C/opt/alt/python37/lib/python3.7/site-packages/asynctest/_fail_on.py�__init__'