Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.12/idlelib/idle_test/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.12/idlelib/idle_test/__pycache__/test_warning.cpython-312.opt-2.pyc

�

&Μg�
���	ddlmZddlmZddlZddlmZddlZejZdejvZ
dZedzZGd�d	ej�ZGd
�dej�Ze	dk(rej d
��yy)�)�run)�pyshellN)�captured_stderr�idlezf
Warning (from warnings module):
  File "test_warning.py", line 99
    Line of code
UserWarning: Test
z>>> c�D�eZdZejed�d��Zd�Zy)�RunWarnTest�#Does not work when run within Idle.c�D�|jtjt�tjd�|jtjtj
�tjd�|jtjt�y�NTF)�assertIs�warnings�showwarningr�capture_warnings�idle_showwarning_subproc��selfs �;/usr/local/lib/python3.12/idlelib/idle_test/test_warning.py�test_showwarningszRunWarnTest.test_showwarnings!s`���
�
�h�*�*�K�8����T�"��
�
�h�*�*�C�,H�,H�I����U�#��
�
�h�*�*�K�8�c	��t�5}tjdtdd|d�|j	t
j
�|j�j
��ddd�y#1swYyxYw�N�Testztest_warning.py�czLine of code)rrr�UserWarning�assertEqual�idlemsg�
splitlines�getvalue�r�fs  r�
test_run_showzRunWarnTest.test_run_show)s]��
�
�!��(�(��K�):�B��>�
S�
���W�/�/�1�1�:�:�<�3J�3J�3L�M�	�
�
���AA3�3A<N)�__name__�
__module__�__qualname__�unittest�skipIf�running_in_idlerr!�rrrrs)���X�_�_�_�&K�L�9�M�9�Nrrc�J�eZdZejed�d��Zd�Zd�Zy)�
ShellWarnTestr	c�D�|jtjt�tjd�|jtjtj
�tjd�|jtjt�yr)rr
r�shellr�idle_showwarningrs rrzShellWarnTest.test_showwarnings3s`���
�
�h�*�*�K�8�
���t�$��
�
�h�*�*�E�,B�,B�C�
���u�%��
�
�h�*�*�K�8rc�j�tjdtddd�}|jt|�yr)r-�idle_formatwarningrrr)r�ss  r�test_idle_formatterz!ShellWarnTest.test_idle_formatter;s/���$�$���%6��N�
L������!�$rc	��t�5}tjdtdd|d�|j	t
j
�|j�j
��ddd�y#1swYyxYwr)rr-r.rr�shellmsgrrrs  r�test_shell_showzShellWarnTest.test_shell_showAs[��
�
�!��"�"��K�):�B��>�
S����X�0�0�2�A�J�J�L�4K�4K�4M�N��
�
�r"N)	r#r$r%r&r'r(rr2r5r)rrr+r+1s.���X�_�_�_�&K�L�9�M�9�%�Orr+�__main__�)�	verbosity)�idlelibrrr-r&�test.supportrr
rr#r(rr4�TestCaserr+�mainr)rr�<module>r=s�����$��(���"�"���K�0�0�0�����V���N�(�#�#�N�$O�H�%�%�O�.�z���H�M�M�A��r

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists