403Webshell
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/IPython/utils/tests/__pycache__/test_io.cpython-311.pyc
�

�@�c����dZddlZddlmZddlmZmZddlZddlm	Z	m
Z
d�ZGd�dej��Z
Gd	�d
ej��ZdS)zTests for io.py�N)�StringIO)�Popen�PIPE)�Tee�capture_outputc��t��}d}t|d���}t||���|���|dzksJ�dS)z"Very simple check with stdout only�Hello�stdout��channel��file�
N)rr�print�getvalue)�chan�text�tees   �=/usr/lib/python3/dist-packages/IPython/utils/tests/test_io.py�test_tee_simplersX���:�:�D��D�

�d�H�
%�
%�
%�C�	�$�T������=�=�?�?�d�T�k�)�)�)�)�)�)�c��eZdZd�Zd�ZdS)�TeeTestCasec���t��}t��}d}tt|��}tt||��t	||���}t|d|���|���}|�|���|��|���tt||��tt|��|ksJ�dS)Nr	r�)�endr)	r�getattr�sys�setattrrrr�assertEqual�close)�selfr�traprr�std_orir�trap_vals        r�tchanzTeeTestCase.tchans����z�z���z�z�����#�w�'�'����W�d�#�#�#��$��(�(�(��
�d���&�&�&�&��=�=�?�?����������$�/�/�/��	�	������W�g�&�&�&��s�G�$�$��/�/�/�/�/�/rc�:�dD]}|�|���dS)N)r
�stderr)r&)r"rs  r�testzTeeTestCase.test/s0��(�	�	�D��J�J�t�����	�	rN)�__name__�
__module__�__qualname__r&r)�rrrrs2������0�0�0�&����rrc��eZdZd�ZdS)�TestIOStreamc��t��5}td��tdtj���ddd��n#1swxYwY|�|jd��|�|jd��dS)zcapture_output() context worksz
hi, stdoutz
hi, stderrr
Nzhi, stdout
zhi, stderr
)rrrr(r r
)r"�ios  r�test_capture_outputz TestIOStream.test_capture_output5s����
�
�	1���,�����,�S�Z�0�0�0�0�	1�	1�	1�	1�	1�	1�	1�	1�	1�	1�	1����	1�	1�	1�	1�	
�����N�3�3�3������N�3�3�3�3�3s�+A�A
�
A
N)r*r+r,r2r-rrr/r/3s#������4�4�4�4�4rr/)�__doc__rr1r�
subprocessrr�unittest�IPython.utils.iorrr�TestCaserr/r-rr�<module>r8s������
�
�
�������"�"�"�"�"�"�"�"�����0�0�0�0�0�0�0�0�*�*�*������(�#����2
4�
4�
4�
4�
4�8�$�
4�
4�
4�
4�
4r

Youez - 2016 - github.com/yon3zu
LinuXploit