| Server IP : 35.80.110.71 / Your IP : 216.73.216.52 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/IPython/testing/__pycache__/ |
Upload File : |
�
}�el � �t � d Z ddlZddlZddlZddlmZ ddlmZ ddl m
Z
ddlmZ ddl
mZ d � ad
� Zd� Zd� Zy)
a Global IPython app to support test running.
We must start our own ipython object and heavily muck with it so that all the
modifications IPython makes to system behavior don't send the doctest machinery
into a fit. This code should be considered a gross hack, but it gets the job
done.
� N)�Path� )�tools)�page)�io)�TerminalInteractiveShellc � � t � S )N)�
start_ipython� � �=/usr/lib/python3/dist-packages/IPython/testing/globalipapp.py�get_ipythonr s
� ��?�r c � � t | j |dd�� j � dt j �� t j j � y)zFReplace the default system call with a capturing one for doctest.
Fr )�split�depth� )�end�fileN)�print� getoutput�rstrip�sys�stdout�flush)�self�cmds r
�xsysr "