← Back
Editing: ipdoctest.cpython-311.pyc
� �@�cs. � �6 � d Z ddlZddlZddlZddlZddlmZ ej e� � Z G d� dej � � Z G d� dej � � Z G d� d ej � � Z G d � dej � � Z ej d� � Z G d � dej e� � ZdS )a� Nose Plugin that supports IPython doctests. Limitations: - When generating examples for use as doctests, make sure that you have pretty-printing OFF. This can be done either by setting the ``PlainTextFormatter.pprint`` option in your configuration file to False, or by interactively disabling it with %Pprint. This is required so that IPython output matches that of normal Python, which is used by doctest for internal execution. - Do not rely on specific prompt numbers for results (such as using '_34==True', for example). For IPython tests run via an external process the prompt numbers may be different, and IPython tests run as normal python code won't even have these special _NN variables set at all. � N)�modified_envc � � � e Zd Z� fd�Z� xZS )� DocTestFinderc �� �� t � � � |||||� � }t t |dd� � � � r |�|j D ]}d|j t j <