Format: application/x-python-code
1 o
2
3 ��hp. � @ s� d Z ddlZddlZddlZddlmZ e�e�ZG dd� dej �Z G dd� dej
4 �ZG dd � d ej�Z
5 G d
6 d� dej�Ze�d�ZG d
7 d� deje�ZdS )a� Nose Plugin that supports IPython doctests.
8
9 Limitations:
10
11 - When generating examples for use as doctests, make sure that you have
12 pretty-printing OFF. This can be done either by setting the
13 ``PlainTextFormatter.pprint`` option in your configuration file to False, or
14 by interactively disabling it with %Pprint. This is required so that IPython
15 output matches that of normal Python, which is used by doctest for internal
16 execution.
17
18 - Do not rely on specific prompt numbers for results (such as using
19 '_34==True', for example). For IPython tests run via an external process the
20 prompt numbers may be different, and IPython tests run as normal python code
21 won't even have these special _NN variables set at all.
22 � N)�modified_envc s e Zd Z� fdd�Z� ZS )�
23 DocTestFinderc sH t � �|||||�}tt|dd��r"|d ur"|jD ]}d|jtj<