XylotrechusZ
�
���g � �D � d Z ddlmZmZ G d� de� Z G d� de� Zy)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 � � e Zd ZdZy)�DeprecatedTestz7Raise this exception to mark a test as deprecated.
N)�__name__�
__module__�__qualname__�__doc__� � �F/opt/hc_python/lib/python3.12/site-packages/nose/plugins/deprecated.pyr r s
� ��r r c �6 � e Zd ZdZdZ eedd�� Zd� Zd� Z y) �
Deprecatedze
Installs a DEPRECATED error class for the DeprecatedTest exception. Enabled
by default.
T�
DEPRECATEDF)�label� isfailurec �T � d}|j ddd|j |d� d�� y) z&Register commandline options.
�NOSE_WITHOUT_DEPRECATEDz--no-deprecated�
store_true�noDeprecatedFz6Disable special handling of DeprecatedTest exceptions.)�action�dest�default�helpN)�
add_option�get)�self�parser�env�env_opts r
�optionszDeprecated.options s6 � � ,�����+�L�-�s�w�w�w��7N� (� � )r c �Z � | j sy|| _ t |dd� }|rd| _ yy)zConfigure plugin.
Nr F)�
can_configure�conf�getattr�enabled)r r! r$ �disables r
� configurezDeprecated.configure% s4 � � �!�!���� ��'�>�5�9��� �D�L� r N)
r r r r
r&