Current File : //usr/local/apps/python3/lib/python3.11/test/__pycache__/list_tests.cpython-311.opt-1.pyc |
�
�Ke�B � �l � d Z ddlZddlZddlmZ ddlmZmZ ddlm Z m
Z
G d� dej � � ZdS )z,
Tests common to list and UserList.UserList
� N)�
cmp_to_key)�support� seq_tests)� ALWAYS_EQ�NEVER_EQc �� � � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z
d � Zd
� Zd� Z
d� Zd
� Zd� Zd� Zd� Z� fd�Zd� Zd� Zd� Zd� Zd� Z� fd�Z� fd�Zd� Zd� Zd� Z� xZS )�
CommonTestc � � | � | � g � � | � � � � � | � g d�� � }|� � � | � || � g � � � � | � g d�� � }|� g d�� � | � || � g d�� � � � | � |� � }| � t |� � t |� � � � | � ||� � d S )N�� � � )� � � )�assertEqual� type2test�__init__�assertNotEqual�id��self�a�bs �9/usr/local/apps/python3/lib/python3.11/test/list_tests.py� test_initzCommonTest.test_init s � ��������+�+�T�^�^�-=�-=�>�>�>�
�N�N�9�9�9�%�%�� �
�
��������D�N�N�2�.�.�/�/�/�
�N�N�9�9�9�%�%�� �
�
�9�9�9��������D�N�N�9�9�9�5�5�6�6�6�
�N�N�1�������B�q�E�E�2�a�5�5�)�)�)�����A������ c � � g }d}| � t |� � 5 |d d d d � � d S # 1 swxY w Y d S )N�'list indices must be integers or slicesr ��assertRaisesRegex� TypeError�r r �msgs r �test_getitem_errorzCommonTest.test_getitem_error"