�9�c@s@dZddlmZddlmZdefd��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(tinspect_tracebackt
FailureDetailcBs/eZdZdZd�Zd�Zd�ZRS(sP
Plugin that provides extra information in tracebacks of test failures.
i@cCs8|jdddddd|jd�dd d
d�dS(
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>/sys/lib/python2.7/site-packages/nose/plugins/failuredetail.pytoptionss
cCs&|js
dS|j|_||_dS(sConfigure plugin.
N(t
can_configureRtenabledtconf(RRR((s>/sys/lib/python2.7/site-packages/nose/plugins/failuredetail.pyt configures cCsh|\}}}dt|�}}|rRt|�}djt|�|g�}n||_|||fS(sLAdd detail from traceback inspection to error message of a failure.
s
N(tNonetstrRtjointtbinfo(RttestterrtectevttbRtstr_ev((s>/sys/lib/python2.7/site-packages/nose/plugins/failuredetail.pyt
formatFailure%s (t__name__t
__module__t__doc__tscoreRRR(((s>/sys/lib/python2.7/site-packages/nose/plugins/failuredetail.pyRs
N(R!tnose.pluginsRtnose.inspectorRR(((s>/sys/lib/python2.7/site-packages/nose/plugins/failuredetail.pyt<module>s
|