Server IP : 192.158.238.246 / Your IP : 3.15.238.90 Web Server : LiteSpeed System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64 User : jenniferflocom ( 1321) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python37/lib/python3.7/site-packages/nose/plugins/__pycache__/ |
Upload File : |
B �~RS � @ s8 d Z ddlmZmZ G dd� de�ZG dd� 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 @ s e Zd ZdZdS )�DeprecatedTestz7Raise this exception to mark a test as deprecated. N)�__name__� __module__�__qualname__�__doc__� r r �H/opt/alt/python37/lib/python3.7/site-packages/nose/plugins/deprecated.pyr s r c @ s2 e Zd ZdZdZeeddd�Zdd� Zdd � Z d S )� Deprecatedze Installs a DEPRECATED error class for the DeprecatedTest exception. Enabled by default. TZ DEPRECATEDF)�labelZ isfailurec C s$ d}|j ddd|�|d�dd� dS ) z&Register commandline options. ZNOSE_WITHOUT_DEPRECATEDz--no-deprecated� store_true�noDeprecatedFz6Disable special handling of DeprecatedTest exceptions.)�action�dest�default�helpN)� add_option�get)�self�parser�envZenv_optr r r �options s zDeprecated.optionsc C s* | j s dS || _t|dd�}|r&d| _dS )zConfigure plugin. Nr F)Z can_configure�conf�getattr�enabled)r r r �disabler r r � configure% s zDeprecated.configureN) r r r r r r r Z deprecatedr r r r r r r s r N)r Znose.plugins.errorclassr r � Exceptionr r r r r r �<module> s