File: //proc/self/root/opt/alt/python312/lib64/python3.12/test/__pycache__/test_call.cpython-312.pyc
�
~h�e�� � �� � d dl Z d dlmZmZmZ d dlZd dlZd dlZd dl Z d dl
Z
d dlZd dlZd dl
Z
G d� de� Z G d� de j � Ze G d� de j � � Z G d � d
e j � Z G d� de� Z G d
� de� Z G d� de� Z G d� de� Zd� Zd� Z G d� d� Z e� Z e� Z G d� de j � ZdZdZ d� Z!d� Z"dZ# G d� de j � Z$ G d � d!� Z%e G d"� d#e j � � Z&e G d$� d%e j � � Z' G d&� d'e j � Z(e)d(k( r e jT � yy# e$ r dZY ��`w xY w))� N)�cpython_only�requires_limited_api�
skip_on_s390xc � � e Zd Zd� Zd� Zy)�BadStrc � � y)NT� )�self�others �5/opt/alt/python312/lib64/python3.12/test/test_call.py�__eq__z
BadStr.__eq__ s � �� c �2 � t j | � dz S )N� )�str�__hash__�r
s r r zBadStr.__hash__ s � ��|�|�D�!�A�%�%r N)�__name__�
__module__�__qualname__r
r r r r r r s � ��&r r c � � e Zd Zd� Zd� Zy)�
FunctionCallsc � � t j ddg� }|j d� t |j � � }d� } |di |��}| j |t � | j t |j � � |� y )N)�a� )�b� r c � � | S �Nr )�kws r �fnz+FunctionCalls.test_kwargs_order.<locals>.fn s � ��Ir r )�collections�OrderedDict�move_to_end�list�items�assertIsInstance�dict�assertEqual)r
�od�expectedr! �ress r �test_kwargs_orderzFunctionCalls.test_kwargs_order sp � �
�
$�
$�h��%9�
:��
���s������
�#�� � �h�2�h�����c�4�(�����c�i�i�k�*�H�5r c �Z � d� }t d� D ] } |d � �
y # t $ r Y �w xY w)Nc � � y r r r r r �fzBFunctionCalls.test_frames_are_popped_after_failed_calls.<locals>.f* s � �r �� )�range� TypeError)r
r0 �_s r �)test_frames_are_popped_after_failed_callsz7FunctionCalls.test_frames_are_popped_after_failed_calls'