%PDF- %PDF-
Direktori : /opt/alt/python27/lib/python2.7/site-packages/nose/plugins/ |
Current File : //opt/alt/python27/lib/python2.7/site-packages/nose/plugins/logcapture.pyo |
� ���Sc @ s� d Z d d l Z d d l m Z d d l Z d d l m Z d d l m Z m Z m Z y d d l m Z Wn! e k r� d d l m Z n Xe j e � Z d e f d � � YZ d e f d � � YZ d e f d � � YZ d S( s This plugin captures logging statements issued during test execution. When an error or failure occurs, the captured log messages are attached to the running test in the test.capturedLogging attribute, and displayed with the error failure output. It is enabled by default but can be turned off with the option ``--nologcapture``. You can filter captured logging statements with the ``--logging-filter`` option. If set, it specifies which logger(s) will be captured; loggers that do not match will be passed. Example: specifying ``--logging-filter=sqlalchemy,myapp`` will ensure that only statements logged via sqlalchemy.engine, myapp or myapp.foo.bar logger will be logged. You can remove other installed logging handlers with the ``--logging-clear-handlers`` option. i����N( t Handler( t Plugin( t anypt lnt safe_str( t StringIOt FilterSetc B sV e Z d � Z d � Z e e � Z d � Z d � Z e e � Z d � Z d � Z RS( c C s | j | � \ | _ | _ d S( N( t _partitiont inclusivet exclusive( t selft filter_components( ( sH /opt/alt/python27/lib/python2.7/site-packages/nose/plugins/logcapture.pyt __init__! s c C sX g g } } x>