Current File : //usr/local/apps/python3/lib/python3.11/test/__pycache__/test_set.cpython-311.pyc |
�
�Ke7 � ��
� d dl Z d dlmZ d dlmZ d dlZd dlZd dlZd dlZd dl Z d dl
mZmZ d dl
Z
d dlZd dlZd dlZ G d� de� � Zd� Z G d� d � � Z G d
� d� � Z G d� d
e� � Z G d� d� � Z G d� dee j � � Z G d� de� � Z G d� de� � Z G d� dee j � � Z G d� de� � Z G d� de� � Z! G d� de� � Z" G d� de j � � Z# G d � d!e� � Z$ G d"� d#e#� � Z% e� � Z& G d$� d%� � Z' G d&� d'e'e j � � Z( G d(� d)e'e j � � Z) G d*� d+e'e j � � Z* G d,� d-e'e j � � Z+ G d.� d/e'e j � � Z, G d0� d1e'e j � � Z- G d2� d3e'e j � � Z.d4� Z/d5� Z0 G d6� d7e j � � Z1 G d8� d9e j � � Z2 G d:� d;e j � � Z3 G d<� d=e j � � Z4 G d>� d?e j � � Z5 G d@� dA� � Z6 G dB� dCe6e j � � Z7 G dD� dEe6e j � � Z8 G dF� dGe6e j � � Z9 G dH� dIe6e j � � Z: G dJ� dKe6e j � � Z; G dL� dM� � Z< G dN� dOe<e j � � Z= G dP� dQe<e j � � Z> G dR� dSe<e j � � Z? G dT� dUe<e j � � Z@ G dV� dWe<e j � � ZA G dX� dYe<e j � � ZB G dZ� d[� � ZC G d\� d]eCe j � � ZD G d^� d_eCe j � � ZE G d`� daeCe j � � ZF G db� dceCe j � � ZG G dd� deeCe j � � ZH G df� dge j � � ZIdh� ZJ G di� dj� � ZK G dk� dl� � ZL G dm� dn� � ZM G do� dp� � ZN G dq� dr� � ZO G ds� dt� � ZP G du� dv� � ZQd dwlmRZR dx� ZS G dy� dze j � � ZT G d{� d|� � ZU G d}� d~� � ZV G d� d�e j � � ZW G d�� d�� � ZX G d�� d�eX� � ZY G d�� d�eYe j � � ZZ G d�� d�eYe j � � Z[ G d�� d�eYe j � � Z\ G d�� d�eYe j � � Z] G d�� d�eX� � Z^ G d�� d�e^e j � � Z_ G d�� d�e^e j � � Z` G d�� d�e^e j � � Za G d�� d�e^e j � � Zb G d�� d�e^e j � � Zc G d�� d�e^e j � � Zdd�� Zed�� Zfd�� Zgd�� Zh G d�� d�e j � � Ziejd�k r e jk � � dS dS )�� N)�support)�warnings_helper)� randrange�shufflec � � e Zd ZdS )�PassThruN��__name__�
__module__�__qualname__� � �7/usr/local/apps/python3/lib/python3.11/test/test_set.pyr r � � � � � � ��Dr r c # � K � t ��N)r r
r r �check_pass_thrur s � � � �
�Nr c � � e Zd Zd� Zd� ZdS )�BadCmpc � � dS �N� r
��selfs r �__hash__zBadCmp.__hash__ � � ��qr c � � t �r )�RuntimeError�r �others r �__eq__z
BadCmp.__eq__ s � ��r N�r
r r r r! r
r r r r s2 � � � � � �� � �� � � � r r c � � e Zd ZdZd� ZdS )�ReprWrapperz*Used to test self-referential repr() callsc �* � t | j � � S r )�repr�valuer s r �__repr__zReprWrapper.__repr__ s � ��D�J���r N)r
r r �__doc__r( r
r r r$ r$ s) � � � � � �0�0� � � � � r r$ c � � e Zd ZdZd� Zd� ZdS )�HashCountingIntzBint-like object that counts the number of times __hash__ is calledc � � d| _ d S �Nr ��
hash_count)r �argss r �__init__zHashCountingInt.__init__# s
� �����r c �V � | xj dz
c_ t � | � � S r )r/ �intr r s r r zHashCountingInt.__hash__% s$ � ����1�����|�|�D�!�!�!r N)r
r r r) r1 r r
r r r+ r+ ! s8 � � � � � �H�H�� � �"� "� "� "� "r r+ c � � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z
d � Zd
� Zd� Z
d� Zd
� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� ZdS )�TestJointOpsc � � dx| _ }d| _ d| _ | � |� � | _ t
� |� � | _ d S )N�
simsalabim�
madagascar�4abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ)�word� otherword�letters�thetype�s�dict�fromkeys�d)r r: s r �setUpzTestJointOps.setUp, sF � �'�'�� �D�%���M������d�#�#������t�$�$����r c � � | � t | j g d� � | � t t � � j d�� � d S )N� r ��a)�assertRaises� TypeErrorr= �setr1 r s r �test_new_or_initzTestJointOps.test_new_or_init3 sE � ����)�T�\�2�q�9�9�9����)�S�U�U�^�q��9�9�9�9�9r c � � t | j � � }t | j � � }| � ||� � | � t
| j t � � � � | � t | j g g� � d S r ) �sortedr>