Plan 9 from Bell Labs’s /usr/web/sources/contrib/jas/root/sys/lib/python2.7/site-packages/nose/plugins/deprecated.pyc

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


�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.pyRst
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_truetdesttnoDeprecatedtdefaultthelps6Disable 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

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.