Your IP : 216.73.216.213


Current Path : /opt/alt/python35/lib/python3.5/site-packages/nose/plugins/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib/python3.5/site-packages/nose/plugins/__pycache__/deprecated.cpython-35.pyc



�~RS�@sLdZddlmZmZGdd�de�ZGdd�de�ZdS)a�
This plugin installs a DEPRECATED error class for the :class:`DeprecatedTest`
exception. When :class:`DeprecatedTest` is raised, the exception will be logged
in the deprecated attribute of the result, ``D`` or ``DEPRECATED`` (verbose)
will be output, and the exception will not be counted as an error or failure.
It is enabled by default, but can be turned off by using ``--no-deprecated``.
�)�
ErrorClass�ErrorClassPluginc@seZdZdZdS)�DeprecatedTestz7Raise this exception to mark a test as deprecated.
    N)�__name__�
__module__�__qualname__�__doc__�r	r	�H/opt/alt/python35/lib/python3.5/site-packages/nose/plugins/deprecated.pyrsrc@sLeZdZdZdZeedddd�Zdd�Zd	d
�Z	dS)�
Deprecatedze
    Installs a DEPRECATED error class for the DeprecatedTest exception. Enabled
    by default.
    T�labelZ
DEPRECATEDZ	isfailureFc
Cs;d}|jdddddd|j|d�d	d
�dS)z&Register commandline options.
        ZNOSE_WITHOUT_DEPRECATEDz--no-deprecated�action�
store_true�dest�noDeprecated�defaultF�helpz6Disable special handling of DeprecatedTest exceptions.N)�
add_option�get)�self�parser�envZenv_optr	r	r
�optionsszDeprecated.optionscCs;|js
dS||_t|dd�}|r7d|_dS)zConfigure plugin.
        NrF)Z
can_configure�conf�getattr�enabled)rrr�disabler	r	r
�	configure%s		zDeprecated.configureN)
rrrrrrrZ
deprecatedrrr	r	r	r
rs			rN)rZnose.plugins.errorclassrr�	Exceptionrrr	r	r	r
�<module>s