Ñò
Æ^mGc @ s d Z d d k Z d d k Z d d k Z d d k l Z d d k l Z y d d k l Z Wn# e
j
o d d k l Z n Xe i e ƒ Z
d e f d „ ƒ YZ d S( sê
This plugin captures stdout during test execution, appending any
output captured to the error or failure output, should the test fail
or raise an error. It is enabled by default but may be disable with
the options -s or --nocapture.
iÿÿÿÿN( t Plugin( t ln( t StringIOt Capturec B s¶ e Z d Z e Z d Z d Z d Z d „ Z e i
d „ Z d „ Z d „ Z
d „ Z d „ Z d
„ Z d „ Z d „ Z d
„ Z d „ Z d „ Z d „ Z e e d d d ƒ Z RS( sù
Output capture plugin. Enabled by default. Disable with -s or
--nocapture. This plugin captures stdout during test execution,
appending any output captured to the error or failure output,
should the test fail or raise an error.
t NOSE_NOCAPTUREt captureiô c C s g | _ d | _ d S( N( t stdoutt Nonet _buf( t self( ( s8 /usr/lib/python2.6/site-packages/nose/plugins/capture.pyt __init__ s c C s9 | i d d d d d | i | i ƒ d d d d ƒd S(
Ns -ss --nocapturet actiont store_falset defaultt destR t helpsU Don't capture stdout (any stdout output will be printed immediately) [NOSE_NOCAPTURE]( t
add_optiont gett env_opt( R t parsert env( ( s8 /usr/lib/python2.6/site-packages/nose/plugins/capture.pyt options$ s c C s$ | | _ | i p
t | _ n d S( N( t confR t Falset enabled( R R R ( ( s8 /usr/lib/python2.6/site-packages/nose/plugins/capture.pyt configure+ s
c C s | i ƒ d | _ d S( N( t endR R ( R t test( ( s8 /usr/lib/python2.6/site-packages/nose/plugins/capture.pyt afterTest0 s
c C s | i ƒ d S( N( t start( R ( ( s8 /usr/lib/python2.6/site-packages/nose/plugins/capture.pyt begin4 s c C s | i ƒ d S( N( R ( R R ( ( s8 /usr/lib/python2.6/site-packages/nose/plugins/capture.pyt
beforeTest7 s c C sM | i | _ } d | _ | p | S| \ } } } | | i | | ƒ | f S( N( t buffert capturedOutputR R t addCaptureToErr( R R t errt outputt ect evt tb( ( s8 /usr/lib/python2.6/site-packages/nose/plugins/capture.pyt formatError: s c C s | i | | ƒ S( N( R( ( R R R# ( ( s8 /usr/lib/python2.6/site-packages/nose/plugins/capture.pyt
formatFailureE s c C s+ d i t | ƒ t d ƒ | t d ƒ g ƒ S( Ns
s >> begin captured stdout <