| Server IP : 68.178.172.28 / Your IP : 216.73.216.152 Web Server : Apache System : Linux 28.172.178.68.host.secureserver.net 4.18.0-553.94.1.el8_10.x86_64 #1 SMP Mon Jan 19 05:45:41 EST 2026 x86_64 User : kiskarnal ( 1003) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /opt/python38/lib/python3.8/unittest/test/__pycache__/ |
Upload File : |
U
�i�_ � @ s� d Z ddlZddlZddlZdd� ZG dd� dej�Zedkr�ejdd ��6Z e
ej�d
krpejdej�
� d� nejdd
� W 5 Q R X e 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.
� Nc C s t �dt� d S )N�rw)�warnings�warn�RuntimeWarning� r r �;/opt/python38/lib/python3.8/unittest/test/_test_warnings.py�warnfun s r c @ sD e Zd Zdd� Zdd� Zdd� Zdd� Zd d
� Zdd� Zd
d� Z dS )�TestWarningsc C s( | � dd� | � dd� | � dd� d S )N� )ZassertEquals��selfr r r �test_assert s zTestWarnings.test_assertc C s | � d� | � d� d S )N� T)Z
failUnlessr r r r � test_fail s
zTestWarnings.test_failc C s | � dd� | �dd� d S )Nr
� � )ZassertAlmostEqualZassertNotAlmostEqualr r r r �test_other_unittest s z TestWarnings.test_other_unittestc C s( t �dt� t �dt� t �dt� d S )NZdw)r r �DeprecationWarningr r r r �test_deprecation% s zTestWarnings.test_deprecationc C s( t �dt� t �dt� t �dt� d S )N�iw)r r �
ImportWarningr r r r �test_import* s zTestWarnings.test_importc C s"