Ńň
<^žFc @ sL d Z d d k Z d d k l Z d d k l Z d e f d YZ d S( sR
This plugin provides assert introspection. When the plugin is enabled
and a test failure occurs, the traceback of the failure exception is
examined and displayed with extra context around the line where the
exception was raised. Simple variable substitution is also performed
in the context output to provide more debugging information.
i˙˙˙˙N( t Plugin( t inspect_tracebackt
FailureDetailc B s5 e Z d Z d Z e i d Z d Z d Z RS( sÜ
Plugin that provides assert introspection. When a test failure occurs, the
traceback of the failure exception is examined and displayed with extra
context around the line where the exception was raised.
iX c C s8 | i d d d d d d | i d d d d
d d S( Ns -ds --detailed-errorss --failure-detailt actiont
store_truet defaultt NOSE_DETAILED_ERRORSt destt detailedErrorst helpsZ Add detail to error output by attempting to evaluate failed asserts [NOSE_DETAILED_ERRORS]( t
add_optiont get( t selft parsert env( ( s> /usr/lib/python2.6/site-packages/nose/plugins/failuredetail.pyt options s
c C s( | i p d S| i | _ | | _ d S( N( t
can_configureR t enabledt conf( R R R ( ( s> /usr/lib/python2.6/site-packages/nose/plugins/failuredetail.pyt configure s
c C sF | \ } } } t | } | | _ | d i t | | g | f S( sL Add detail from traceback inspection to error message of a failure.
s
( R t tbinfot joint str( R t testt errt ect evt tbR ( ( s> /usr/lib/python2.6/site-packages/nose/plugins/failuredetail.pyt
formatFailure$ s ( t __name__t
__module__t __doc__t scoret ost environR R R ( ( ( s> /usr/lib/python2.6/site-packages/nose/plugins/failuredetail.pyR
s
( R R! t nose.pluginsR t nose.inspectorR R ( ( ( s> /usr/lib/python2.6/site-packages/nose/plugins/failuredetail.pyt