Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 18.119.108.80
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : list_tests.pyc
�
>��cc@sQdZddlZddlZddlmZmZdejfd��YZdS(s,
Tests common to list and UserList.UserList
i����N(ttest_supportt	seq_testst
CommonTestcBs�eZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(cCs�|j|jg�|j��|jdddg�}|j�|j||jg��|jdddg�}|jdddg�|j||jdddg��|j|�}|jt|�t|��|j||�dS(Niiiiii(tassertEqualt	type2testt__init__tassertNotEqualtid(tselftatb((s6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyt	test_inits
"cCs�g}dddg}|j|�}|j|�}|jt|�t|��|jt|�t|��|jt|�t|��|jt|�d�|jt|�d�|j|�|jd�|jt|�d�|jt|�d�dS(Niiis	[0, 1, 2]is[0, 1, 2, [...], 3](RRtstrtreprtappend(Rtl0tl2ta0ta2((s6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyt	test_reprs

cCsY|jg�}x0ttj�d�D]}|j|g�}q&W|jtt|�dS(Nid(RtrangetsystgetrecursionlimittassertRaisestRuntimeErrorR
(RR	ti((s6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyttest_repr_deep0sc	Cs�|jtd��}|j|�|jtdd��|j|�|jd�z`ttjd��}||IWdQXttjd��#}|j|j�t	|��WdQXWdt
jtj�XdS(Ni�i�twbtrb(RtxrangeRtextendtopenRtTESTFNRtreadR
tostremove(Rtdtfo((s6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyt
test_print6s


&cCs!|jtd��}|jt|jtddd�dddg�|jt|jtdd�d�|jt|jtddd�ddg�|jt|jdd�dddg|tddd�<|j||jddddddd	d
ddddd
dddddddg��dS(Niii
iiitxiiii	iii
iiiiii(	RRRt
ValueErrort__setitem__tslicet	TypeErrort__getitem__R(RR	((s6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyttest_set_subscriptDs."+*cCs�|jtd��}t|�}|jt|�|jtddd���|jt|j�|jtt|j���|j��|jtt	tdddg��dS(Niii����iii(
RRtreversedRtlistRt
StopIterationtnextR+tlen(RR	tr((s6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyt
test_reversedOs+
cCsF|jddg�}d|d<d|d<|j||jddg��d|d<|j||jddg��d|d<|j||jddg��|jt|jdd�|jt|jdd�|jg�}|jt|jdd�|jt|jdd�|jt|j�|jdddd	d
g�}d|d<d|d<d	|d
<|j||jddd	d	d
g��d|d<d|d<d|d<|j||jdddd	d
g��d|d<d|d<|j||jdddddg��d|d<d|d<|j||jdddddg��dS(Niiidi�i����i����i����iiillliiiiXl����icl����ii	(RRRt
IndexErrorR)R+(RR	((s6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyttest_setitemYs:






(


(

(

cCs	|jddg�}|d=|j|dg�|d=|j|g�|jddg�}|d=|j|dg�|d=|j|g�|jddg�}|jt|jd�|jt|jd�|jg�}|jt|jd�|jt|j�dS(Niii����i����i����i(RRRR5t__delitem__R+(RR	((s6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyttest_delitemzs c
Csddg}|j|�}xtdd�D]�}|| ||*|j||�|}|| ||*|j||�||||)|j||�|}||||)|j||�xftdd�D]U}|||!|||+|j||�|}|||!|||+|j||�q�Wq+W|}ddg|d*|j|ddddg�g|d)|j|g�|jddddd	g�}||d*|j||jddddd	d	g��|jddddd	g�}||d)|j||jdddddd	g��|jddddd	g�}||dd+|j||jdddddd	d	g��|jg�}ttd
��|(|j||jtd
���|jt|jddd	�|jt|jtddd	��|jt|j�|jt|j�dS(Niii����ii����i����iiii
(	RRRttupleRR+t__setslice__R)R*(RtlR	RRtjtaa2((s6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyt
test_setslice�sP

+
+
."cCs|jddg�}|dd5|dd5|j||jg��|jddg�}|dd5|dd5|j||jg��|jddg�}|dd5|j||jdg��|jddg�}|d	d
5|j||jdg��|jddg�}|d3|d4|j||jg��|jddg�}|d3|d4|j||jg��|jddg�}|d3|j||jdg��|jddg�}|d
3|j||jdg��|jddg�}|2|j||jg��dS(Niiillli����i����l����l����(RR(RR	((s6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyt
test_delslice�s>





cCso|jg�}|jd�|jd�|jd�|j||jdddg��|jt|j�dS(Niii(RRRRR+(RR	((s6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyttest_append�s


"c	Cs
|jdg�}|jd�}|}|j|�|j|||�|j|jg��|j|||�|j|�|j||jddddddg��|jd�}|jd�|j|td��|jt|jd�|jt|j�dS(Niitspamteggstspameggs(ii(RRRR/RR+tNone(Rta1RR	((s6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyttest_extend�s

+
cCs�|jdddg�}|jdd�|jdd�|jdd�|j|ddddddg�|}|jdd�|jdd�|jd	d
�|j||jddddddddd
g	��|jt|j�dS(Niiii����i����tfooi8���tlefti�tright(RtinsertRRR+(RR	R
((s6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyttest_inserts"4cCs�|jdddg�}|j�|j|ddg�|jd�|j|dg�|jt|jd�|jd�|j|g�|jt|j�|jt|jdd�|jddddd	g�}dS(
Ni����iiii*i
iii((RtpopRRR5R+(RR	((s6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyttest_pops


cs|jdddg�}|jd�|j|ddg�|jd�|j|dg�|jd�|j|g�|jt|jd�|jt|j�dtfd��Y�dd�fd��Y}|jddddg�}|j�|j|��d	d�fd
��Y}|jd�}|jd�|j||jd
��|jd�|j||jd��|jt|jd�|j||jd��|jdd|�dg�}|j|�}|j�|jd�x-t||�D]\}}|j||�q�WdS(NiitBadExccBseZRS((t__name__t
__module__(((s6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyRN0stBadCmpcseZ�fd�ZRS(cs|dkr���ntS(Ni(tFalse(Rtother(RN(s6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyt__eq__4s(RORPRT((RN(s6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyRQ3siitBadCmp2cseZ�fd�ZRS(cs
���dS(N((RRS(RN(s6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyRT=s(RORPRT((RN(s6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyRU<stabcdefghcijtct
abdefghcijt	abdefghijR	R
(((	RR#RRR(R+t	ExceptiontziptassertIs(RR	RQRUR$teR'ty((RNs6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyttest_remove#s4




cs�|jdddg�d}|j|jd�d�|j|jd�d�|j|jd�d�|jt|j�dtfd��Y�dd	�fd��Y}|j�|j|��dS(
NiiiiRNcBseZRS((RORP(((s6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyRNXsRQcseZ�fd�ZRS(cs|dkr���ntS(Ni(RR(RRS(RN(s6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyRT\s(RORPRT((RN(s6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyRQ[s((RRtcountRR+RZ(RR	RQ((RNs6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyt
test_countPscs�|jddg�}|j|jd�d�|j|jd�d�|jt|jd�|jddddddg�}|j|jd�d�|j|jd�d�|j|jdd�d�|j|jdd�d�|j|jdd�d�|j|jddd�d�|jt|jddd�|jt|j�d	tfd
��Y�dd�fd��Y}|jddddg�}|j�|j|��|jddddddg�}|j|jd�d�|j|jdd�d�|j|jdd
�d�|j|jdd�d�|j|jdd�d�|j|jdd�d�|j|jddd�d�|j|jddd�d�|j|jdd
tj	dtj	�d�|jt|jddtj	d
tj	�|jt|jddd�|j
d�|jt|jddd�|j||jdddddg��ddd��Y}|j�}gtd�D]}||�^q�|(|jt|jd�dS(Niiii����i����i����iiRNcBseZRS((RORP(((s6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyRNtsRQcseZ�fd�ZRS(cs|dkr���ntS(Ni(RR(RRS(RN(s6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyRTxs(RORPRT((RN(s6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyRQwsi����i����tEvilCmpcBseZd�Zd�ZRS(cSs
||_dS(N(tvictim(RRc((s6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyR�scSs|j2tS(N(RcRR(RRS((s6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyRT�s(RORPRRT(((s6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyRb�s	id(((
RRtindexRR(R`R+RZRtmaxintR#RRD(RtuRQR	Rbt_((RNs6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyt
test_indexcsH!!-*
(&cCs�|jdddddg�}|}|j�|j|dddddg�|j�|j||�|jt|jd�dS(Ni����i����iiii*(RtreverseRRR+(RRftu2((s6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyttest_reverse�s

cCs*tjdtf��|j�WdQXdS(Ns!the cmp argument is not supported(Rtcheck_py3k_warningstDeprecationWarningt
_test_sort(R((s6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyt	test_sort�scs~|jddg�}|j�|j|ddg�|jdddddg�}|j�|j||jdddddg��|jt|jdd�d�}|j|�|j||jdddddg��d�}|jtd	����j|�|jt�jd��fd
�}|jt�j|�|jt�jd��|jt�jdddd�dS(Niiii����i����i*cSs
t||�S(N(tcmp(R	R
((s6/usr/local/python-2.7/lib/python2.7/test/list_tests.pytrevcmp�scSst|d|d�S(Nii(Rp(R'R^((s6/usr/local/python-2.7/lib/python2.7/test/list_tests.pytmyComparison�sics�jd�t||�S(Ni(RRp(R'R^(tz(s6/usr/local/python-2.7/lib/python2.7/test/list_tests.pytselfmodifyingComparison�s
cSsdS(Nts((R'R^((s6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyt<lambda>�t(RtsortRRR+RR((RRfRqRrRt((Rss6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyRn�s$

(	
(	
cCs3|jd�}d|d*|j|td��dS(NRAthitham(RRR/(RRf((s6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyt
test_slice�s
cCs�tt|�j�|jddg�}|}|ddg7}|j||�|jd�}|d7}|j||jd��|jt|jd�dS(NiiiiRARBRC(
tsuperRt	test_iaddRR\RRR+t__iadd__RD(RRfRj((s6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyR}�s
c	Cs�|jddg�}|d9}|j||jddddddg��|d9}|j||jg��|jg�}t|�}|d9}|jt|�|�dS(Niiii
(RRR(RRfRutoldid((s6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyt	test_imul�s
+

c
Cs�|jdddddg�}|ddd�=|j||jddg��|jtd��}|ddd�=|j||jdddg��|jtd��}|ddd�=|j||jddddg��|jtd��}|ddd	�=|j||jdddddd
ddd
g	��|jtd��}dgd|ddd�<|j||jdddddddddd
g
��|jtd��}dgd|ddd�<|j||jddddddd
dddg
��|jtd��}||ddd�<|j||jddddg��|jtd��}|}|}|jddg�|dd+|jddg�|tdd�<|jddg�|ddd�<|j||�|j||�|jtd��}ttd��|ddd�<|j||jdddddddddd
g
��|jtd��}|d
dd�=dS(Niiiiiii����i
i�iiii	i����i����ttwotelementsiMl(RRRR*RDR9(RR	R
RW((s6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyttest_extendedslicing�sD"%477%""7cCs0dtfd��Y}|jtt|��dS(NtFcBseZd�ZRS(cSs
t�dS(N(tKeyboardInterrupt(R((s6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyt__iter__s(RORPR�(((s6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyR�s(tobjectRR�R/(RR�((s6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyt#test_constructor_exception_handlingscCs�|jdddg�}t|�}t|�}x|D]}t|�q7W|jd�|jt|�g�|jt|�dg�|j||jddddg��dS(Niiii	(RtiterR1RRR/(RR	texhittempitR'((s6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyttest_exhausted_iterators

(RORPRRRR&R-R4R6R8R>R?R@RFRKRMR_RaRhRkRoRnR{R}R�R�R�R�(((s6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyR
s4						
	!		0	)					
	-		9	
		!		
		)	(t__doc__RR"ttestRRR(((s6/usr/local/python-2.7/lib/python2.7/test/list_tests.pyt<module>s
© 2025 GrazzMean