403Webshell
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/utils/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

}�e�����dZddlZddlZddlmZedddddd	�
�Zddd
�Zdddd�iZddddddd�Z	ddiddiddiddiddiddid�Z
dZdZejjdej��d��Zd �Zejjdej��d!��Zejjdej��d"��Zd#�Zd$�Zd%�Zd&�Zd'�Zy)(zTests for IPython.utils.capture�N)�capture�	image/png�
image/jpeg�
image/svg+xml�	text/html�application/json�application/javascript)�
_repr_png_�_repr_jpeg_�
_repr_svg_�_repr_html_�_repr_json_�_repr_javascript_s
binarydataz<b>bold</b>)rr�
�)�width�heightz<svg>zalert();z{})rrrrr	r�png�exists�jpeg�svg�html�js�jsonz
hello, stdoutz
hello, stderr�method_mimec�\�tj�}|\}}t||���J�y)zRichOutput with no argsN)r�
RichOutput�getattr)r�rich�method�mimes    �B/usr/lib/python3/dist-packages/IPython/utils/tests/test_capture.py�test_rich_output_emptyr#Es3������D��L�F�D� �7�4�� �"�*�*�*�c� �t}t}tj||��}|j	�|dk(sJ�|j�|d|dfk(sJ�|j
��J�|j��J�|j��J�y)ztest RichOutput basics��data�metadatarrN)	�
basic_data�basic_metadatarrr
r
�_repr_latex_rr)r'r(rs   r"�test_rich_outputr,Ls����D��H����4�(�;�D������k�!2�2�2�2��?�?���k�!2�H�[�4I� J�J�J�J�����&�&�&��!�!�#�+�+�+��?�?��$�$�$r$c�x�t}tj|��}|\}}t||��||k(sJ�y)z test RichOutput with no metadata�r'N)�	full_datarrr)rr'rr r!s     r"�test_rich_output_no_metadatar0Xs@���D����4�(�D��L�F�D� �7�4�� �"�d�4�j�0�0�0r$c��t}t}tj||��}|\}}t	||��||||fk(sJ�y)ztest RichOutput with metadatar&N)r/�
full_metadatarrr)rr'r(rr r!s      r"�test_rich_output_metadatar3asP���D��H����4�(�;�D��L�F�D� �7�4�� �"�t�D�z�8�D�>�&B�B�B�Br$c�l�t}tj|��}tj�5}|j	�ddd�tj�dk(sJ�|jd}|j|jk(sJ�|j|jk(sJ�y#1swY�ixYw)z�test RichOutput.display

    This is a bit circular, because we are actually using the capture code we are testing
    to test itself.
    r.N�r)	r/rr�capture_output�display�len�outputsr'r()r'r�cap�rich2s    r"�test_rich_output_displayr<js����D����4�(�D�	�	�	�	!��S�������s�{�{��q� � � ��K�K��N�E��:�:����"�"�"��>�>�T�]�]�*�*�*���s�B*�*B3c�`�tjt��}tj�5}t	t
d��t	tdtj��|j�ddd�t
jk(sJ�t|jk(sJ�y#1swY�4xYw)zcapture_output worksr.���end�r@�fileN)rrr/r6�print�hello_stdout�hello_stderr�sys�stderrr7�stdout�rr:s  r"�test_capture_outputrJys~�����9�-�D�	�	�	�	!��S�
�l��#�
�l�����4�������3�:�:�%�%�%��3�:�:�%�%�%���s�AB$�$B-c��tjt��}tjd��5}t	t
d��t	tdtj��|j�ddd�djk(sJ�t|jk(sJ�t|j�dk(sJ�y#1swY�JxYw)	z!test capture_output(stdout=False)r.F)rHr>r?rANr5�
rrr/r6rCrDrErFrGr7rHr8r9rIs  r"�test_capture_output_no_stdoutrM�s������9�-�D�	�	�	�u�	-���
�l��#�
�l�����4��������������3�:�:�%�%�%��s�{�{��q� � � �
��s�AB<�<Cc���tjt��}tj�5tjd��5}t	t
d��t	tdtj��|j�ddd�ddd�t
jk(sJ�d|jk(sJ�t|j�dk(sJ�y#1swY�RxYw#1swY�VxYw)	z!test capture_output(stderr=False)r.F)rGr>r?rANr5rLrIs  r"�test_capture_output_no_stderrrO�s������9�-�D�	�	�	�	!��7�#9�#9��#G��3�
�l��#�
�l�����4��������3�:�:�%�%�%�
��������s�{�{��q� � � �
�����s$�C%�AC�C%�C"	�C%�%C.c��tjt��}tjd��5}t	t
d��t	tdtj��|j�ddd�t
jk(sJ�t|jk(sJ�|jgk(sJ�y#1swY�ExYw)z"test capture_output(display=False)r.F)r7r>r?rAN)rrr/r6rCrDrErFrGr7rHr9rIs  r"�test_capture_output_no_displayrQ�s������9�-�D�	�	�	��	.��#�
�l��#�
�l�����4�������3�:�:�%�%�%��3�:�:�%�%�%��;�;�"����
��s�AB7�7C)�__doc__rF�pytest�
IPython.utilsr�dict�	_mime_mapr)r*r/r2rDrE�mark�parametrize�itemsr#r,r0r3r<rJrMrOrQ�r$r"�<module>r[s[��%��
�!�
�����"�.�

�	� ���
�
������ � ���)��

�	��8�$��X�&��x�(��H�%� $�x�0� �8�,�
�
�����
������	���(9�:�+�;�+�	%�������	���(9�:�1�;�1�������	���(9�:�C�;�C�
+�&�	!�
!�	r$

Youez - 2016 - github.com/yon3zu
LinuXploit