Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.12/test/test_unittest/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.12/test/test_unittest/__pycache__/_test_warnings.cpython-312.pyc

�

*Μg����dZddlZddlZddlZd�ZGd�dej
�Zedk(r�ejd��5Z	e
ej�d	k(r-ejd
ejj���nejd
��ddd�e	D]Zeej ��yy#1swY�$xYw)
a�
This module has a number of tests that raise different kinds of warnings.
When the tests are run, the warnings are caught and their messages are printed
to stdout.  This module also accepts an arg that is then passed to
unittest.main to affect the behavior of warnings.
Test_TextTestRunner.test_warnings executes this script with different
combinations of warnings args and -W flags and check that the output is correct.
See #10535.
�Nc�8�tjdt�y)N�rw)�warnings�warn�RuntimeWarning���>/usr/local/lib/python3.12/test/test_unittest/_test_warnings.py�warnfunrs���M�M�$��'r	c�*�eZdZd�Zd�Zd�Zd�Zd�Zy)�TestWarningsc�L�|jdd�|jdd�y)N���)�assertAlmostEqual�assertNotAlmostEqual��selfs r
�test_other_unittestz TestWarnings.test_other_unittests"�����s�A�&��!�!�#�q�)r	c��tjdt�tjdt�tjdt�y)N�dw)rr�DeprecationWarningrs r
�test_deprecationzTestWarnings.test_deprecations/���
�
�d�.�/��
�
�d�.�/��
�
�d�.�/r	c��tjdt�tjdt�tjdt�y)N�iw)rr�
ImportWarningrs r
�test_importzTestWarnings.test_imports,���
�
�d�M�*��
�
�d�M�*��
�
�d�M�*r	c��tjd�tjd�tjd�y)N�uw)rrrs r
�test_warningzTestWarnings.test_warning%s&���
�
�d���
�
�d���
�
�d�r	c�@�t�t�t�y)N)rrs r
�
test_functionzTestWarnings.test_function,s���	��	��	r	N)�__name__�
__module__�__qualname__rrrr!r#rr	r
r
r
s��*�
0�
+��r	r
�__main__T)�recordrF)�exitr)r))�__doc__�sys�unittestrr�TestCaser
r$�catch_warnings�ws�len�argv�main�pop�w�print�messagerr	r
�<module>r7s�������(��8�$�$��@�z��	 ��	 �	 ��	-���s�x�x�=�A���H�M�M�u�s�x�x�|�|�~�>��H�M�M�u�%�
.���
�a�i�i����	-�	-�s�AB8�8C

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