U e@s8dZddlmZmZGdddeZGdddeZdS)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``. ) ErrorClassErrorClassPluginc@seZdZdZdS)DeprecatedTestz7Raise this exception to mark a test as deprecated. N)__name__ __module__ __qualname____doc__r r E/opt/hc_python/lib/python3.8/site-packages/nose/plugins/deprecated.pyr src@s2eZdZdZdZeedddZddZdd Z d S) Deprecatedze Installs a DEPRECATED error class for the DeprecatedTest exception. Enabled by default. TZ DEPRECATEDF)labelZ isfailurecCs$d}|jddd||ddddS) z&Register commandline options. ZNOSE_WITHOUT_DEPRECATEDz--no-deprecated store_true noDeprecatedFz6Disable special handling of DeprecatedTest exceptions.)actiondestdefaulthelpN) add_optionget)selfparserenvZenv_optr r r optionss  zDeprecated.optionscCs*|js dS||_t|dd}|r&d|_dS)zConfigure plugin. NrF)Z can_configureconfgetattrenabled)rrrdisabler r r configure%s  zDeprecated.configureN) rrrrrrr deprecatedrrr r r r r s r N)rZnose.plugins.errorclassrr Exceptionrr r r r r s