�9�c@sLdZddlmZmZdefd��YZdefd��YZdS(s�
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``.
i�(t
ErrorClasstErrorClassPlugintDeprecatedTestcBseZdZRS(s7Raise this exception to mark a test as deprecated.
(t__name__t
__module__t__doc__(((s;/sys/lib/python2.7/site-packages/nose/plugins/deprecated.pyRst
DeprecatedcBs>eZdZeZeeddde�Zd�Z d�Z
RS(se
Installs a DEPRECATED error class for the DeprecatedTest exception. Enabled
by default.
tlabelt
DEPRECATEDt isfailurec
Cs;d}|jdddddd|j|t�dd �d
S(s&Register commandline options.
tNOSE_WITHOUT_DEPRECATEDs--no-deprecatedtactiont
store_truetdesttnoDeprecatedtdefaultthelps6Disable special handling of DeprecatedTest exceptions.N(t
add_optiontgettFalse(tselftparsertenvtenv_opt((s;/sys/lib/python2.7/site-packages/nose/plugins/deprecated.pytoptionsscCs>|js
dS||_t|dt�}|r:t|_ndS(sConfigure plugin.
NR(t
can_configuretconftgetattrRtenabled(RRRtdisable((s;/sys/lib/python2.7/site-packages/nose/plugins/deprecated.pyt configure%s (RRRtTrueRRRRt
deprecatedRR(((s;/sys/lib/python2.7/site-packages/nose/plugins/deprecated.pyRs N(Rtnose.plugins.errorclassRRt ExceptionRR(((s;/sys/lib/python2.7/site-packages/nose/plugins/deprecated.pyt<module>s
|