Current File : //usr/lib/python2.7/site-packages/nose/plugins/failuredetail.pyo
�
d�Uc@sVdZddlmZddlmZmZddlmZdefd��YZdS(s0
This plugin provides assert introspection. When the plugin is enabled
and a test failure occurs, the traceback is displayed with extra context
around the line in which the exception was raised. Simple variable 
substitution is also performed in the context output to provide more
debugging information.
i����(tPlugin(texc_to_unicodet
force_unicode(tinspect_tracebackt
FailureDetailcBs/eZdZdZd�Zd�Zd�ZRS(sP
    Plugin that provides extra information in tracebacks of test failures.
    i@cCs8|jdddddd|jd�dd	d
d�dS(
s'Register commmandline options.
        s-ds--detailed-errorss--failure-detailtactiont
store_truetdefaulttNOSE_DETAILED_ERRORStdesttdetailedErrorsthelpsZAdd detail to error output by attempting to evaluate failed asserts [NOSE_DETAILED_ERRORS]N(t
add_optiontget(tselftparsertenv((s>/usr/lib/python2.7/site-packages/nose/plugins/failuredetail.pytoptionss
cCs&|js
dS|j|_||_dS(sConfigure plugin.
        N(t
can_configureR
tenabledtconf(RRR((s>/usr/lib/python2.7/site-packages/nose/plugins/failuredetail.pyt	configures	cCsh|\}}}dt|�}}|rRtt|��}dj||g�}n||_|||fS(sLAdd detail from traceback inspection to error message of a failure.
        s
N(tNoneRRRtjointtbinfo(RttestterrtectevttbRtstr_ev((s>/usr/lib/python2.7/site-packages/nose/plugins/failuredetail.pyt
formatFailure&s	(t__name__t
__module__t__doc__tscoreRRR(((s>/usr/lib/python2.7/site-packages/nose/plugins/failuredetail.pyR
s
		N(	R"tnose.pluginsRtnose.pyversionRRtnose.inspectorRR(((s>/usr/lib/python2.7/site-packages/nose/plugins/failuredetail.pyt<module>s