| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/IPython/utils/tests/__pycache__/ |
Upload File : |
�
�@�c� � � � d Z ddlZddlmZ ddlmZmZ ddlZddlm Z m
Z
d� Z G d� dej � � Z
G d � d
ej � � ZdS )zTests for io.py� N)�StringIO)�Popen�PIPE)�Tee�capture_outputc � � t � � } d}t | d�� � }t || �� � | � � � |dz k sJ �dS )z"Very simple check with stdout only�Hello�stdout��channel��file�
N)r r �print�getvalue)�chan�text�tees �=/usr/lib/python3/dist-packages/IPython/utils/tests/test_io.py�test_tee_simpler sX � ��:�:�D��D�
�d�H�
%�
%�
%�C� �$�T������=�=�?�?�d�T�k�)�)�)�)�)�)� c � � e Zd Zd� Zd� ZdS )�TeeTestCasec �� � t � � }t � � }d}t t |� � }t t ||� � t ||�� � }t |d|�� � |� � � }| � |� � � |� � |� � � t t ||� � t t |� � |k sJ �d S )Nr r � )�endr ) r �getattr�sys�setattrr r r �assertEqual�close)�selfr �trapr r �std_orir �trap_vals r �tchanzTeeTestCase.tchan s� � ��z�z���z�z�����#�w�'�'����W�d�#�#�#��$��(�(�(��
�d���&�&�&�&��=�=�?�?����������$�/�/�/�� � ������W�g�&�&�&��s�G�$�$��/�/�/�/�/�/r c �: � dD ]}| � |� � �d S )N)r
�stderr)r&