| 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/support/__pycache__/ |
Upload File : |
�
���gO � � � d dl Z G d� d� Zy)� Nc � � e Zd ZdZd� Zy)�ASTTestMixinz3Test mixing to have basic assertions for AST nodes.c � � �� � j |t j � � j |t j � t � f� �fd� � �||� y )Nc �f �� t | � t |� ur(�
j t | � �dt |� ��� t | t j � r:| j
D ]* }t
| ||� }t
|||� }||us�" �||� �, y t | t � r! t | |d�� D ] \ }} �||� � y | |k7 r�
j | �d|��� y y # t $ rE t | � }t |� } || kD rd}
|| z
}nd}
| |z
}|
� d|� d�}�
j |� d �w xY w) Nz is not T)�strict�First�Secondz list contains z additional elements.z != )�type�fail�
isinstance�ast�AST�_fields�getattr�list�zip�
ValueError�len�failureException)�a�b�missing�field�value1�value2�node1�node2�len1�len2�what�diff�msg�self�traverse_compares ���,C:\Python312\\Lib\test\support\ast_helper.pyr$ z5ASTTestMixin.assertASTEqual.<locals>.traverse_compare sA �� ��A�w�d�1�g�%�� � �T�!�W�K�x��Q��{�;�<��!�S�W�W�%��Y�Y�E�$�Q��w�7�F�$�Q��w�7�F� �V�+�(���8�
'� �A�t�$�?�(+�A�q��(>���u�(���6� )?� �a��� � �Q�E��a�U�+�,� �� "� ?��q�6�D��q�6�D��d�{�&��#�d�{��'��#�d�{��!�F�/�$��7L�M�C��/�/��4�$�>�?�s
�%C"