Format: application/x-python-code
1 o
2
3 ��hl � @ s| d Z ddlZddlZddlZddlmZ ddlmZ ddl m
4 Z
5 ddlmZ ddl
6 mZ d d
7 � add� Zd
8 d� Zdd� ZdS )a Global IPython app to support test running.
9
10 We must start our own ipython object and heavily muck with it so that all the
11 modifications IPython makes to system behavior don't send the doctest machinery
12 into a fit. This code should be considered a gross hack, but it gets the job
13 done.
14 � N)�Path� )�tools)�page)�io)�TerminalInteractiveShellc C s t � S )N)�
15 start_ipython� r r �Qc:\Users\shubh\Videos\agent\nova\Lib\site-packages\IPython/testing/globalipapp.py�get_ipython s r c C s. t | j|ddd��� dtjd� tj�� dS )zFReplace the default system call with a capturing one for doctest.
16 Fr )�split�depth� )�end�fileN)�print� getoutput�rstrip�sys�stdout�flush)�self�cmdr r r
17 �xsys"