| Server IP : 121.121.20.254 / Your IP : 216.73.216.202 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 : |
�
���gF � �
� d dl Z d dlmZ d dlmZ d dlmZ dZ G d� d� Z G d� d e� Z G d
� dee j � Z G d� d
ee j � Z G d� dee j � Z
G d� dee j � Z G d� de e j � Z G d� de e j � Z G d� de e j � Z G d� de e j � Z G d� de e j � Z G d� de e j � Z G d� dee j � Z G d � d!ee j � Z G d"� d#e� Z G d$� d%e� Z G d&� d'e� Z G d(� d)e j � Zed*k( r e j: � yy)+� N)�repeat)�deque)�length_hint�
c � � e Zd Zd� Zy)�TestInvariantWithoutMutationsc �L � | j }t t dt dz � � D ]( }| j t |� |� t
|� �* | j t |� d� | j t t |� | j t |� d� y �N� r ) �it�reversed�range�n�assertEqualr �next�assertRaises�
StopIteration)�selfr �is �&C:\Python312\\Lib\test\test_iterlen.py�test_invariantz,TestInvariantWithoutMutations.test_invariant6 s{ � �
�W�W���%��1�Q�3�-�(�A����[��_�a�0���H� )�
����R��!�,����-��r�2�����R��!�,� N)�__name__�
__module__�__qualname__r � r r r r 4 s � �-r r c � � e Zd Zd� Zy)�TestTemporarilyImmutablec �@ � | j }| j t |� t � t |� | j t |� t dz
� | j � | j
t t |� | j t |� d� y r
)r r r r r �mutater �RuntimeError)r r s r �test_immutable_during_iterationz8TestTemporarilyImmutable.test_immutable_during_iterationA so � � �W�W������R��!�,��R������R��!�A�#�.����
����,��b�1�����R��!�,r N)r r r r"