Current File : //usr/lib/python2.7/site-packages/nose/plugins/skip.pyc
�
d�Uc@s�dZddlmZmZyddlmZWnOek
r�yddlmZWq�ek
r}defd��YZq�XnXdefd��YZ	dS(	s^
This plugin installs a SKIP error class for the SkipTest exception.
When SkipTest is raised, the exception will be logged in the skipped
attribute of the result, 'S' or 'SKIP' (verbose) will be output, and
the exception will not be counted as an error or failure. This plugin
is enabled by default but may be disabled with the ``--no-skip`` option.
i����(t
ErrorClasstErrorClassPlugin(tSkipTestRcBseZdZRS(s<Raise this exception to mark a test as skipped.
            (t__name__t
__module__t__doc__(((s5/usr/lib/python2.7/site-packages/nose/plugins/skip.pyRstSkipcBs>eZdZeZeeddde�Zd�Z	d�Z
RS(s"
    Plugin that installs a SKIP error class for the SkipTest
    exception.  When SkipTest is raised, the exception will be logged
    in the skipped attribute of the result, 'S' or 'SKIP' (verbose)
    will be output, and the exception will not be counted as an error
    or failure.
    tlabeltSKIPt	isfailurec
Cs;d}|jdddddd|j|t�dd	�d
S(s1
        Add my options to command line.
        tNOSE_WITHOUT_SKIPs	--no-skiptactiont
store_truetdesttnoSkiptdefaultthelps0Disable special handling of SkipTest exceptions.N(t
add_optiontgettFalse(tselftparsertenvtenv_opt((s5/usr/lib/python2.7/site-packages/nose/plugins/skip.pytoptions+scCs>|js
dS||_t|dt�}|r:t|_ndS(sF
        Configure plugin. Skip plugin is enabled by default.
        NR(t
can_configuretconftgetattrRtenabled(RRRtdisable((s5/usr/lib/python2.7/site-packages/nose/plugins/skip.pyt	configure5s		(RRRtTrueRRRRtskippedRR(((s5/usr/lib/python2.7/site-packages/nose/plugins/skip.pyRs			
N(
Rtnose.plugins.errorclassRRt
unittest.caseRtImportErrortunittest2.caset	ExceptionR(((s5/usr/lib/python2.7/site-packages/nose/plugins/skip.pyt<module>s