| Server IP : 121.121.20.254 / Your IP : 216.73.217.51 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python312/Lib/test/__pycache__/ |
Upload File : |
�
���g� � � � d Z ddlZddlZddlZddlmZ G d� dej � Zedk( r ej � yy)zL
Tests run by test_atexit in a subprocess since it clears atexit callbacks.
� N)�supportc �Z � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z
d � Zd
� Zd� Z
d� Zd
� Zy)�GeneralTestc �, � t j � y �N��atexit�_clear��selfs �&C:\Python312\\Lib\test\_test_atexit.py�setUpzGeneralTest.setUp � � ��
�
�� c �, � t j � y r r r s r
�tearDownzGeneralTest.tearDown r r c � � t j � 5 }t j |g|��� t j � | j |j j |� | j |j j |� | j t |j j � |� d d d � y # 1 sw Y y xY wr )r �catch_unraisable_exceptionr �register�_run_exitfuncs�assertEqual�
unraisable�object�exc_type�type� exc_value)r r �func�args�cms r
�assert_raises_unraisablez$GeneralTest.assert_raises_unraisable s� � �
�
/�
/�
1�R��O�O�D�(�4�(��!�!�#����R�]�]�1�1�4�8����R�]�]�3�3�X�>����T�"�-�-�"9�"9�:�H�E�
2�
1�
1�s �B&C�C
c � �� g ��fd�}�fd�}t j |dd� t j |� t j |dd�� t j � | j �dd d
difddi fdd
i fg� y )Nc �. �� �j d| |f� y )N�func1��append�r �kwargs�callss �r
r# z%GeneralTest.test_order.<locals>.func1 � �� ��L�L�'�4��0�1r c �. �� �j d| |f� y )N�func2r$ r&