config root man

Current Path : /usr/local/lib/python2.5/test/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/local/lib/python2.5/test/list_tests.pyo

³ò
h”Rc@s]dZddkZddkZddkZddklZlZdeifd„ƒ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„ZRS(cCsé|i|igƒ|iƒƒ|idddgƒ}|iƒ|i||igƒƒ|idddgƒ}|idddgƒ|i||idddgƒƒ|i|ƒ}|it|ƒt|ƒƒ|i||ƒdS(Niiiiii(tassertEqualt	type2testt__init__tassertNotEqualtid(tselftatb((s+/usr/local/lib/python2.5/test/list_tests.pyt	test_init
s
"cCsóg}dddg}|i|ƒ}|i|ƒ}|it|ƒt|ƒƒ|it|ƒt|ƒƒ|i|
|
ƒ|it|ƒdƒ|it|ƒdƒ|i|ƒ|idƒ|it|ƒdƒ|it|ƒdƒdS(Niiis	[0, 1, 2]is[0, 1, 2, [...], 3](RRtstrtreprtappend(Rtl0tl2ta0ta2((s+/usr/local/lib/python2.5/test/list_tests.pyt	test_repr s

cCsÌ|itdƒƒ}|i|ƒ|itddƒƒ|i|ƒ|idƒzXttidƒ}||I|iƒttidƒ}|i|i	ƒt
|ƒƒWd|iƒtitiƒXdS(NiÈitwbtrb(
RtxrangeRtextendtopenRtTESTFNtcloseRtreadR
tostremove(Rtdtfo((s+/usr/local/lib/python2.5/test/list_tests.pyt
test_print1s




 
cCs!|itdƒƒ}|it|itdddƒdddgƒ|it|itddƒdƒ|it|itdddƒddgƒ|it|iddƒdddg|tdddƒ<|i||iddddddd	d
ddddd
dddddddgƒƒdS(Niii
iiitxiiii	iii
iiiiii(	RtrangetassertRaisest
ValueErrort__setitem__tslicet	TypeErrort__getitem__R(RR	((s+/usr/local/lib/python2.5/test/list_tests.pyttest_set_subscriptAs."+*cCs‹|itdƒƒ}t|ƒ}|it|ƒ|itdddƒƒƒ|it|iƒ|itt|iƒƒƒ|iƒƒdS(Niiiÿÿÿÿ(RR"treversedRtlistR#t
StopIterationtnext(RR	tr((s+/usr/local/lib/python2.5/test/list_tests.pyt
test_reversedLs+cCsF|iddgƒ}d|d<d|d<|i||iddgƒƒd|d<|i||iddgƒƒd|d<|i||iddgƒƒ|it|iddƒ|it|iddƒ|igƒ}|it|iddƒ|it|iddƒ|it|iƒ|idddd	d
gƒ}d|d<d|d<d	|d
<|i||iddd	d	d
gƒƒd|d<d|d<d|d<|i||idddd	d
gƒƒd|d<d|d<|i||idddddgƒƒd|d<d|d<|i||idddddgƒƒdS(NiiidiÈiÿÿÿÿiþÿÿÿiýÿÿÿiiillliiiiXlÿÿÿÿiclÿÿÿÿii	(RRR#t
IndexErrorR%R'(RR	((s+/usr/local/lib/python2.5/test/list_tests.pyttest_setitemTs:






(


(

(

cCs	|iddgƒ}|d=|i|dgƒ|d=|i|gƒ|iddgƒ}|d=|i|dgƒ|d=|i|gƒ|iddgƒ}|it|idƒ|it|idƒ|igƒ}|it|idƒ|it|iƒdS(Niiiþÿÿÿiÿÿÿÿiýÿÿÿi(RRR#R0t__delitem__R'(RR	((s+/usr/local/lib/python2.5/test/list_tests.pyttest_delitemus cCsäddg}|i|ƒ}xtddƒD]õ}|| ||*|i||ƒ|}|| ||*|i||ƒ||||)|i||ƒ|}||||)|i||ƒxftddƒD]U}|||!|||+|i||ƒ|}|||!|||+|i||ƒqÇWq+W|}ddg|d*|i|ddddgƒg|d)|i|gƒ|iddddd	gƒ}||d*|i||iddddd	d	gƒƒ|iddddd	gƒ}||d)|i||idddddd	gƒƒ|iddddd	gƒ}||dd+|i||idddddd	d	gƒƒ|igƒ}ttd
ƒƒ|(|i||itd
ƒƒƒ|it|iddd	ƒ|it|iƒdS(Niiiýÿÿÿiiþÿÿÿiÿÿÿÿiiii
(RR"RttupleR#R't__setslice__(RtlR	tiRtjtaa2((s+/usr/local/lib/python2.5/test/list_tests.pyt
test_setslice‹sP

+
+
.cCs|iddgƒ}|dd5|dd5|i||igƒƒ|iddgƒ}|dd5|dd5|i||igƒƒ|iddgƒ}|dd5|i||idgƒƒ|iddgƒ}|d	d
5|i||idgƒƒ|iddgƒ}|d3|d4|i||igƒƒ|iddgƒ}|d3|d4|i||igƒƒ|iddgƒ}|d3|i||idgƒƒ|iddgƒ}|d
3|i||idgƒƒ|iddgƒ}|2|i||igƒƒdS(Niiillliþÿÿÿiÿÿÿÿlÿÿÿÿlÿÿÿÿ(RR(RR	((s+/usr/local/lib/python2.5/test/list_tests.pyt
test_delslice¹s>





cCso|igƒ}|idƒ|idƒ|idƒ|i||idddgƒƒ|it|iƒdS(Niii(RRRR#R'(RR	((s+/usr/local/lib/python2.5/test/list_tests.pyttest_appendâs


"c
Cs
|idgƒ}|idƒ}|}|i|ƒ|i|||ƒ|i|igƒƒ|i|||ƒ|i|ƒ|i||iddddddgƒƒ|idƒ}|idƒ|i|tdƒƒ|it|idƒ|it|iƒdS(Niitspamteggstspameggs(ii(RRRR+R#R'tNone(Rta1RR	((s+/usr/local/lib/python2.5/test/list_tests.pyttest_extendës

+
c
Csì|idddgƒ}|iddƒ|iddƒ|iddƒ|i|ddddddgƒ|}|iddƒ|iddƒ|id	d
ƒ|i||iddddddddd
g	ƒƒ|it|iƒdS(Niiiiþÿÿÿiÿÿÿÿtfooi8ÿÿÿtleftiÈtright(RtinsertRR#R'(RR	R
((s+/usr/local/lib/python2.5/test/list_tests.pyttest_inserts"4cCsÙ|idddgƒ}|iƒ|i|ddgƒ|idƒ|i|dgƒ|it|idƒ|idƒ|i|gƒ|it|iƒ|it|iddƒ|iddddd	gƒ}dS(
Niÿÿÿÿiiii*i
iii((RtpopRR#R0R'(RR	((s+/usr/local/lib/python2.5/test/list_tests.pyttest_pops


cs!|idddgƒ}|idƒ|i|ddgƒ|idƒ|i|dgƒ|idƒ|i|gƒ|it|idƒ|it|iƒdtfd„ƒY‰dd‡fd†ƒY}|iddddgƒ}|iˆ|i|ƒƒd	d‡fd
†ƒY}|idƒ}|idƒ|i||id
ƒƒ|idƒ|i||idƒƒ|it|idƒ|i||idƒƒ|idd|ƒdgƒ}|i|ƒ}|iˆ|idƒx0t||ƒD]\}}|i||jƒqúWdS(NiitBadExccBseZRS((t__name__t
__module__(((s+/usr/local/lib/python2.5/test/list_tests.pyRJ)stBadCmpcseZ‡fd†ZRS(cs|djo
ˆƒ‚ntS(Ni(tFalse(Rtother(RJ(s+/usr/local/lib/python2.5/test/list_tests.pyt__eq__-s

(RKRLRP((RJ(s+/usr/local/lib/python2.5/test/list_tests.pyRM,siitBadCmp2cseZ‡fd†ZRS(cs
ˆƒ‚dS(N((RRO(RJ(s+/usr/local/lib/python2.5/test/list_tests.pyRP6s(RKRLRP((RJ(s+/usr/local/lib/python2.5/test/list_tests.pyRQ5stabcdefghcijtct
abdefghcijt	abdefghijR	R
(((	RRRR#R$R't	Exceptiontziptassert_(RR	RMRQRteR!ty((RJs+/usr/local/lib/python2.5/test/list_tests.pyttest_removes6




csÆ|idddgƒd}|i|idƒdƒ|i|idƒdƒ|i|idƒdƒ|it|iƒdtfd„ƒY‰dd	‡fd†ƒY}|iˆ|i|ƒƒdS(
NiiiiRJcBseZRS((RKRL(((s+/usr/local/lib/python2.5/test/list_tests.pyRJQsRMcseZ‡fd†ZRS(cs|djo
ˆƒ‚ntS(Ni(RN(RRO(RJ(s+/usr/local/lib/python2.5/test/list_tests.pyRPUs

(RKRLRP((RJ(s+/usr/local/lib/python2.5/test/list_tests.pyRMTs((RRtcountR#R'RV(RR	RM((RJs+/usr/local/lib/python2.5/test/list_tests.pyt
test_countIsc	sä|iddgƒ}|i|idƒdƒ|i|idƒdƒ|it|idƒ|iddddddgƒ}|i|idƒdƒ|i|idƒdƒ|i|iddƒdƒ|i|iddƒdƒ|i|iddƒdƒ|i|idddƒdƒ|it|idddƒ|it|iƒd	tfd
„ƒY‰dd‡fd†ƒY}|iddddgƒ}|iˆ|i|ƒƒ|iddddddgƒ}|i|idƒdƒ|i|iddƒdƒ|i|idd
ƒdƒ|i|iddƒdƒ|i|iddƒdƒ|i|iddƒdƒ|i|idddƒdƒ|i|idddƒdƒ|i|idd
ti	dti	ƒdƒ|it|iddti	d
ti	ƒ|it|idddƒ|i
dƒ|it|idddƒ|i||idddddgƒƒddd„ƒY}|iƒ}g}tdƒD]}|||ƒq­~|(|it|idƒdS(NiiiiþÿÿÿiÿÿÿÿiöÿÿÿiiRJcBseZRS((RKRL(((s+/usr/local/lib/python2.5/test/list_tests.pyRJmsRMcseZ‡fd†ZRS(cs|djo
ˆƒ‚ntS(Ni(RN(RRO(RJ(s+/usr/local/lib/python2.5/test/list_tests.pyRPqs

(RKRLRP((RJ(s+/usr/local/lib/python2.5/test/list_tests.pyRMpsiüÿÿÿiýÿÿÿtEvilCmpcBseZd„Zd„ZRS(cSs
||_dS(N(tvictim(RR_((s+/usr/local/lib/python2.5/test/list_tests.pyR‹scSs|i2tS(N(R_RN(RRO((s+/usr/local/lib/python2.5/test/list_tests.pyRPs(RKRLRRP(((s+/usr/local/lib/python2.5/test/list_tests.pyR^Šs	id(((
RRtindexR#R$R\R'RVtsystmaxintRRR@(RtuRMR	R^t_[1]t_((RJs+/usr/local/lib/python2.5/test/list_tests.pyt
test_index\sH!!-*
(.cCs‚|idddddgƒ}|}|iƒ|i|dddddgƒ|iƒ|i||ƒ|it|idƒdS(Niþÿÿÿiÿÿÿÿiiii*(RtreverseRR#R'(RRctu2((s+/usr/local/lib/python2.5/test/list_tests.pyttest_reverse•s

cs~|iddgƒ}|iƒ|i|ddgƒ|idddddgƒ}|iƒ|i||idddddgƒƒ|it|iddƒd„}|i|ƒ|i||idddddgƒƒd„}|itd	ƒƒ‰ˆi|ƒ|itˆidƒ‡fd
†}|itˆi|ƒ|itˆid„ƒ|itˆiddddƒdS(Niiiiÿÿÿÿiþÿÿÿi*cSs
t||ƒS(N(tcmp(R	R
((s+/usr/local/lib/python2.5/test/list_tests.pytrevcmpªscSst|d|dƒS(Nii(Rj(R!RZ((s+/usr/local/lib/python2.5/test/list_tests.pytmyComparison°sicsˆidƒt||ƒS(Ni(RRj(R!RZ(tz(s+/usr/local/lib/python2.5/test/list_tests.pytselfmodifyingComparison·s
cSsdS(ts((R!RZ((s+/usr/local/lib/python2.5/test/list_tests.pyt<lambda>¼s(RtsortRR#R'R"R$(RRcRkRlRn((Rms+/usr/local/lib/python2.5/test/list_tests.pyt	test_sortŸs$

(	
(	
cCs3|idƒ}d|d*|i|tdƒƒdS(NR=thitham(RRR+(RRc((s+/usr/local/lib/python2.5/test/list_tests.pyt
test_sliceÀs
cCstt|ƒiƒ|iddgƒ}|}|ddg7}|i||jƒ|idƒ}|d7}|i||idƒƒ|it|idƒdS(NiiiiR=R>R?(
tsuperRt	test_iaddRRXRR#R't__iadd__R@(RRcRh((s+/usr/local/lib/python2.5/test/list_tests.pyRwÅs
c	Cs¬|iddgƒ}|d9}|i||iddddddgƒƒ|d9}|i||igƒƒ|igƒ}t|ƒ}|d9}|it|ƒ|ƒdS(Niiii
(RRR(RRcRotoldid((s+/usr/local/lib/python2.5/test/list_tests.pyt	test_imulÒs
+

cCsb|idddddgƒ}|ddd…=|i||iddgƒƒ|itdƒƒ}|ddd…=|i||idddgƒƒ|itdƒƒ}|ddd…=|i||iddddgƒƒ|itdƒƒ}|ddd	…=|i||idddddd
ddd
g	ƒƒ|itdƒƒ}dgd|ddd…<|i||idddddddddd
g
ƒƒ|itdƒƒ}dgd|ddd…<|i||iddddddd
dddg
ƒƒ|itdƒƒ}||ddd…<|i||iddddgƒƒ|itdƒƒ}|}|}|iddgƒ|dd+|iddgƒ|tddƒ<|iddgƒ|ddd…<|i||ƒ|i||ƒ|itdƒƒ}ttdƒƒ|ddd…<|i||idddddddddd
g
ƒƒdS(Niiiiiiiþÿÿÿi
ièiiii	iÿÿÿÿiüÿÿÿttwotelements(RRR"R&R@R4(RR	R
RS((s+/usr/local/lib/python2.5/test/list_tests.pyttest_extendedslicingÝs@"%477%""cCs0dtfd„ƒY}|itt|ƒƒdS(NtFcBseZd„Zd„ZRS(css	dVdS(Ni((R((s+/usr/local/lib/python2.5/test/list_tests.pyt__iter__scSs
t‚dS(N(tKeyboardInterrupt(R((s+/usr/local/lib/python2.5/test/list_tests.pyt__len__s(RKRLRR(((s+/usr/local/lib/python2.5/test/list_tests.pyR~s	(tobjectR#R€R+(RR~((s+/usr/local/lib/python2.5/test/list_tests.pyt#test_constructor_exception_handlings(RKRLRRR R)R/R1R3R:R;R<RBRGRIR[R]RfRiRrRuRwRzR}Rƒ(((s+/usr/local/lib/python2.5/test/list_tests.pyRs.						!		.	)					
	-		9	
	!		
		&(t__doc__RaRtunittestttestRRR(((s+/usr/local/lib/python2.5/test/list_tests.pys<module>s


Man Man