HEX
Server: Apache/2.4.65 (Unix) OpenSSL/1.1.1k
System: Linux vps109042.inmotionhosting.com 4.18.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
User: cisa (1010)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: //opt/imh-python/lib/python3.9/unittest/test/__pycache__/_test_warnings.cpython-39.pyc
a

d�h	�@s�dZddlZddlZddlZdd�ZGdd�dej�Zedkr�ejdd	��@Z	e
ej�d
krpejdej�
�d�nejdd
�Wd�n1s�0Ye	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/imh-python/lib/python3.9/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_warnings�ws�len�argv�main�pop�w�print�messagerrrr�<module>s
+*