o
    KXîh 	  ã                   @   s´   	 d dl Z d dlZd dlZdd„ ZG dd„ dejƒZedkrVejdd Ze	e j
ƒd	kr7ejd
e j
 ¡ d nejd
d W d  ƒ n1 sGw   Y  eD ]	Zeejƒ qNdS dS )é    Nc                   C   s   t  dt¡ d S )NÚrw)ÚwarningsÚwarnÚRuntimeWarning© r   r   úF/opt/python-3.10.19/usr/lib/python3.10/unittest/test/_test_warnings.pyÚwarnfun   s   r   c                   @   sD   e Zd Zdd„ Zdd„ Zdd„ Zdd„ Zd	d
„ Zdd„ Zdd„ Z	dS )ÚTestWarningsc                 C   s(   |   dd¡ |   dd¡ |   dd¡ d S )Né   )ZassertEquals©Úselfr   r   r   Útest_assert   ó   zTestWarnings.test_assertc                 C   s   |   d¡ |   d¡ d S )Né   T)Z
failUnlessr   r   r   r   Ú	test_fail   s   
zTestWarnings.test_failc                 C   s   |   dd¡ |  dd¡ d S )Nr
   é   é   )ZassertAlmostEqualZassertNotAlmostEqualr   r   r   r   Útest_other_unittest    s   z TestWarnings.test_other_unittestc                 C   ó(   t  dt¡ t  dt¡ t  dt¡ d S )NZdw)r   r   ÚDeprecationWarningr   r   r   r   Útest_deprecation%   r   zTestWarnings.test_deprecationc                 C   r   )NÚiw)r   r   ÚImportWarningr   r   r   r   Útest_import*   r   zTestWarnings.test_importc                 C   s"   t  d¡ t  d¡ t  d¡ d S )NZuw)r   r   r   r   r   r   Útest_warning0   s   

zTestWarnings.test_warningc                 C   s   t ƒ  t ƒ  t ƒ  d S )N)r   r   r   r   r   Útest_function7   s   
zTestWarnings.test_functionN)
Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r   r   r   r   r   r   r	      s    r	   Ú__main__T)Úrecordr   F)Úexitr   )r!   )ÚsysZunittestr   r   ZTestCaser	   r   Úcatch_warningsÚwsÚlenÚargvÚmainÚpopÚwÚprintÚmessager   r   r   r   Ú<module>   s"   
+€ûö	