HEX
Server: LiteSpeed
System: Linux server.nevid-deploma.com 4.18.0-553.111.1.lve.el8.x86_64 #1 SMP Fri Mar 13 13:42:17 UTC 2026 x86_64
User: smilepac (1037)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //opt/cppython/lib/python3.8/unittest/test/__pycache__/_test_warnings.cpython-38.pyc
U

1D�g	�	@s�dZddlZddlZddlZdd�ZGdd�dej�Zedkr�ejdd	��6Z	e
ej�d
krpejdej�
�d�nejdd
�W5QRXe	D]Zeej�q�dS)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.
�NcCst�dt�dS)N�rw)�warnings�warn�RuntimeWarning�rr�;/opt/cppython/lib/python3.8/unittest/test/_test_warnings.py�warnfunsrc@sDeZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dS)�TestWarningscCs(|�dd�|�dd�|�dd�dS)N�)ZassertEquals��selfrrr�test_assertszTestWarnings.test_assertcCs|�d�|�d�dS)N�T)Z
failUnlessrrrr�	test_fails
zTestWarnings.test_failcCs|�dd�|�dd�dS)Nr
��)ZassertAlmostEqualZassertNotAlmostEqualrrrr�test_other_unittest sz TestWarnings.test_other_unittestcCs(t�dt�t�dt�t�dt�dS)NZdw)rr�DeprecationWarningrrrr�test_deprecation%szTestWarnings.test_deprecationcCs(t�dt�t�dt�t�dt�dS)N�iw)rr�
ImportWarningrrrr�test_import*szTestWarnings.test_importcCs"t�d�t�d�t�d�dS)NZuw)rrrrrr�test_warning0s

zTestWarnings.test_warningcCst�t�t�dS)N)rrrrr�
test_function7szTestWarnings.test_functionN)
�__name__�
__module__�__qualname__r
rrrrrrrrrrr	sr	�__main__T)�recordrF)�exitr)r)�__doc__�sysZunittestrrZTestCaser	r�catch_warningsZws�len�argv�main�pop�w�print�messagerrrr�<module>s
+