Ńň }ęGc @ s d Z d d k l Z d d k Z d d k Z d d k l Z d d k l Z d d k l Z l Z l Z l Z l Z l Z y d d k l Z Wn# e j o d d k l Z n Xd d k Z e i e Z y d d k Z e i Wn+ e e f j o d d k i i Z n Xe i Z d e f d YZ e e _ d e f d YZ d e i f d YZ d e i! f d YZ! d Z" d S( sŮ Use the Doctest plugin with --with-doctest or the NOSE_WITH_DOCTEST environment variable to enable collection and execution of doctests. doctest_ tests are usually included in the tested package, not grouped into packages or modules of their own. For this reason, nose will try to detect and run doctest tests only in the non-test packages it discovers in the working directory. Doctests may also be placed into files other than python modules, in which case they can be collected and executed by using the --doctest-extension switch or NOSE_DOCTEST_EXTENSION environment variable to indicate which file extension(s) to load. doctest tests are run like any other test, with the exception that output capture does not work, because doctest does its own output capture in the course of running a test. This module also includes a specialized version of nose.run() that makes it easier to write doctests that test test runs. .. _doctest: http://docs.python.org/lib/module-doctest.html i˙˙˙˙( t generatorsN( t getmodule( t Plugin( t anypt getpackaget test_addresst resolve_namet srct tolist( t StringIOt NoseOutputRedirectingPdbc B s# e Z d Z d Z d Z RS( c C s t | _ t i | | d S( N( t Falset( _NoseOutputRedirectingPdb__debugger_usedt _orpt __init__( t selft out( ( s9 /usr/lib/python2.6/site-packages/nose/plugins/doctests.pyR 7 s c C s&