Ñò
â÷Gc @ sƒ d Z d d k Z d d k l Z d d k l Z d d k l Z l Z e i
d ƒ Z d „ Z d e f d „ ƒ YZ
d
„ Z d S( sê
Test Result
-----------
Provides a TextTestResult that extends unittest._TextTestResult to
provide support for error classes (such as the builtin skip and
deprecated classes), and hooks for plugins to take over or extend
reporting.
iÿÿÿÿN( t _TextTestResult( t Config( t isclasst lns nose.resultc C s* y t | ƒ SWn d t | ƒ i SXd S( Ns ( t strt typet __name__( t exc( ( s/ /usr/lib/python2.6/site-packages/nose/result.pyt _exception_detail s t TextTestResultc B sV e Z d Z d d d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d d „ Z
RS( sÄ Text test result that extends unittest's default test result
support for a configurable set of errorClasses (eg, Skip,
Deprecated, TODO) that extend the errors/failures/success triad.
c C s] | d j o
h } n | | _ | d j o
t ƒ } n | | _ t i | | | | ƒ d S( N( t Nonet errorClassesR t configR t __init__( t selft streamt descriptionst verbosityR R ( ( s/ /usr/lib/python2.6/site-packages/nose/result.pyR
s
c C s£ t | d d ƒ } | \ } } } y | i | | ƒ } Wn" t j
o | i | ƒ } n Xxà | i i ƒ D]Ï \ } \ } }
} t | ƒ o t | | ƒ o | i | | f ƒ | d j ox | i oK |
g } t
| d ƒ }
|
o | i |
ƒ n | i d i | ƒ ƒ q6| i
o | i |
d ƒ q6n d Sql W| i i | | f ƒ | d j o= | i o | i i d ƒ qŸ| i
o | i d ƒ qŸn d S( s» Overrides normal addError to add support for
errorClasses. If the exception is a registered class, the
error will be added to the list for that class, not errors.
R i s : Nt ERRORt E( t getattrR
t _exc_info_to_stringt TypeErrorR t itemsR t
issubclasst appendt showAllR t writelnt joint dotst writet errorsR ( R t testt errR t ect evt tbt exc_infot clst storaget labelt isfailt messaget detail( ( s/ /usr/lib/python2.6/site-packages/nose/result.pyt addError* s4
c C s† t i | ƒ xH | i i ƒ D]7 } | i | \ } } } | o | i | | ƒ q q Wt | d ƒ o | i i i | i ƒ n d S( s<