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/seq_tests.pyo

³ò
h”Rc@sìdZddkZddklZd„Zddd„ƒYZddd„ƒYZd	dd
„ƒYZddd„ƒYZd
dd„ƒYZ	ddd„ƒYZ
ddd„ƒYZddkl
Z
lZd„Zdeifd„ƒYZdS(s3
Tests common to tuple, list and UserList.UserList
iÿÿÿÿN(ttest_supportccsx|D]}|VqWdS(sRegular generatorN((tseqnti((s*/usr/local/lib/python2.5/test/seq_tests.pytiterfunc
stSequencecBs eZdZd„Zd„ZRS(sSequence using __getitem__cCs
||_dS(N(R(tselfR((s*/usr/local/lib/python2.5/test/seq_tests.pyt__init__scCs|i|S(N(R(RR((s*/usr/local/lib/python2.5/test/seq_tests.pyt__getitem__s(t__name__t
__module__t__doc__RR(((s*/usr/local/lib/python2.5/test/seq_tests.pyRs	tIterFunccBs)eZdZd„Zd„Zd„ZRS(s Sequence using iterator protocolcCs||_d|_dS(Ni(RR(RR((s*/usr/local/lib/python2.5/test/seq_tests.pyRs	cCs|S(N((R((s*/usr/local/lib/python2.5/test/seq_tests.pyt__iter__scCsF|it|iƒjo
t‚n|i|i}|id7_|S(Ni(RtlenRt
StopIteration(Rtv((s*/usr/local/lib/python2.5/test/seq_tests.pytnexts

(RR	R
RRR(((s*/usr/local/lib/python2.5/test/seq_tests.pyRs		tIterGencBs eZdZd„Zd„ZRS(s9Sequence using iterator protocol defined with a generatorcCs||_d|_dS(Ni(RR(RR((s*/usr/local/lib/python2.5/test/seq_tests.pyR%s	ccsx|iD]}|Vq
WdS(N(R(Rtval((s*/usr/local/lib/python2.5/test/seq_tests.pyR(s
(RR	R
RR(((s*/usr/local/lib/python2.5/test/seq_tests.pyR#s	tIterNextOnlycBs eZdZd„Zd„ZRS(s Missing __getitem__ and __iter__cCs||_d|_dS(Ni(RR(RR((s*/usr/local/lib/python2.5/test/seq_tests.pyR.s	cCsF|it|iƒjo
t‚n|i|i}|id7_|S(Ni(RR
RR(RR((s*/usr/local/lib/python2.5/test/seq_tests.pyR1s

(RR	R
RR(((s*/usr/local/lib/python2.5/test/seq_tests.pyR,s	t
IterNoNextcBs eZdZd„Zd„ZRS(sIterator missing next()cCs||_d|_dS(Ni(RR(RR((s*/usr/local/lib/python2.5/test/seq_tests.pyR9s	cCs|S(N((R((s*/usr/local/lib/python2.5/test/seq_tests.pyR<s(RR	R
RR(((s*/usr/local/lib/python2.5/test/seq_tests.pyR7s	t
IterGenExccBs)eZdZd„Zd„Zd„ZRS(sTest propagation of exceptionscCs||_d|_dS(Ni(RR(RR((s*/usr/local/lib/python2.5/test/seq_tests.pyRAs	cCs|S(N((R((s*/usr/local/lib/python2.5/test/seq_tests.pyRDscCsdddS(Nii((R((s*/usr/local/lib/python2.5/test/seq_tests.pyRFs(RR	R
RRR(((s*/usr/local/lib/python2.5/test/seq_tests.pyR?s		tIterFuncStopcBs)eZdZd„Zd„Zd„ZRS(sTest immediate stopcCsdS(N((RR((s*/usr/local/lib/python2.5/test/seq_tests.pyRKscCs|S(N((R((s*/usr/local/lib/python2.5/test/seq_tests.pyRMscCs
t‚dS(N(R(R((s*/usr/local/lib/python2.5/test/seq_tests.pyROs(RR	R
RRR(((s*/usr/local/lib/python2.5/test/seq_tests.pyRIs		(tchaintimapcCs(ttd„ttt|ƒƒƒƒƒS(s Test multiple tiers of iteratorscSs|S(((tx((s*/usr/local/lib/python2.5/test/seq_tests.pyt<lambda>Us(RRRRR(R((s*/usr/local/lib/python2.5/test/seq_tests.pyt	itermultiSst
CommonTestcBsžeZdZd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d„Zd„Zd	„Z
d
„Zd„Zd„Zd
„Zd„Zd„ZRS(cCsCg}dg}ddg}|iƒ}|i|ƒ}|i|ƒ}|i|ƒ}|i|ƒ}|i|ƒ}	|i|ƒ}
|i|ƒ}|it|ƒƒ}ddd„ƒY}
|
|ƒ}|i|ƒ}|it|ƒt|ƒƒd}|i|ƒ}|it|ƒt|ƒƒxddtdƒdtddd
ƒfD]ó}xEtttt	t
fD].}|i|i||ƒƒ|i|ƒƒqdW|i|it|ƒƒ|iƒƒ|i|id„dDƒƒ|idƒƒ|it
|it|ƒƒ|it
|it|ƒƒ|it|it|ƒƒqHWdS(NiitOtherSeqcBs#eZd„Zd„Zd„ZRS(cSs
||_dS(N(t_OtherSeq__data(Rtinitseq((s*/usr/local/lib/python2.5/test/seq_tests.pyRlscSs
t|iƒS(N(R
R(R((s*/usr/local/lib/python2.5/test/seq_tests.pyt__len__nscSs|i|S(N(R(RR((s*/usr/local/lib/python2.5/test/seq_tests.pyRps(RR	RR R(((s*/usr/local/lib/python2.5/test/seq_tests.pyRks		sthis is also a sequencet123tiètdog333333ó?iÐi˜icssx|]}|VqWdS(N((t.0tc((s*/usr/local/lib/python2.5/test/seq_tests.pys	<genexpr>€s	((R#g333333ó?(t	type2testttupletassertEqualR
trangetxrangeRRRRRRtassertRaisest	TypeErrorRRtZeroDivisionErrorR(Rtl0tl1tl2tutu0tu1tu2tuutuu0tuu1tuu2RRtstv0tvvtg((s*/usr/local/lib/python2.5/test/seq_tests.pyttest_constructors[s<	(
,%,cCs1|i|iƒƒ|i|idgƒƒdS(Ni*(tassert_R&(R((s*/usr/local/lib/python2.5/test/seq_tests.pyt
test_truth…scCs|idddddgƒ}xHtt|ƒƒD]4}|i|||ƒ|i|t|ƒ|ƒq1Wx`tt|ƒdƒD]H}|i||t|ƒ|ƒ|i|t|ƒt|ƒ|ƒq€W|it|it|ƒdƒ|it|it|ƒƒ|it|it	dddƒƒ|iƒ}|it|idƒ|it|idƒ|it
|iƒ|iddgƒ}|i|ddƒ|i|ddƒ|i|d	dƒ|i|ddƒ|it|id
ƒ|it|idƒdS(Niiiiiiÿÿÿÿi
iiþÿÿÿiýÿÿÿ(R&R*R
R(tlongR+t
IndexErrorRt
ValueErrortsliceR,(RR1Rta((s*/usr/local/lib/python2.5/test/seq_tests.pyttest_getitem‰s.(!"cCsRdddddg}|i|ƒ}|i|dd!|iƒƒ|i|dd!|idgƒƒ|i|dd!|idgƒƒ|i|dd	!|ƒ|i|d	d!|igƒƒ|i||ƒ|i|dd!|iddddgƒƒ|i|dd!|idddgƒƒ|i|ddd…|ƒ|i|ddd…|idddgƒƒ|i|ddd…|iddgƒƒ|i|ddd…|idddddgƒƒ|i|ddd…|idddgƒƒ|i|ddd…|iddgƒƒ|i|ddd…|igƒƒ|i|ddd…|idgƒƒ|i|ddd…|idgƒƒ|i|ddd…|iddgƒƒ|i|ddd
…|idgƒƒ|i|dd
d…|igƒƒ|i|d
dd…|ƒ|i|dd
d…|ddd…ƒ|i|d
dd…|igƒƒ|i|dd
d…|idddgƒƒ|idddddgƒ}|i|tddƒd!|idddgƒƒ|i|dtddƒ!|iddgƒƒ|it|iƒdS(Niiiiiiþÿÿÿiÿÿÿÿiüÿÿièiœÿÿÿidlÿÿÿÿdldll€l‘(R&R(tNonetpowR+R,t__getslice__(RtlR1RD((s*/usr/local/lib/python2.5/test/seq_tests.pyt
test_getslice£s<## ,)/,5/,&)),)&*&/3/cCs‘|idddgƒ}x!|D]}|i||jƒqWx;t|ƒdt|ƒdfD]}|i||jƒq]W|it|iƒdS(Niii(R&R>tmintmaxR+R,t__contains__(RR1R((s*/usr/local/lib/python2.5/test/seq_tests.pyt
test_containsÉs!cCsXddd„ƒY}|i|ƒ|igƒjƒ|i|ƒ|idgƒjƒdS(NtAllEqcBseZd„Zd„ZRS(cSstS(N(tTrue(Rtother((s*/usr/local/lib/python2.5/test/seq_tests.pyt__eq__×scSs
t‚dS(N(tNotImplemented(R((s*/usr/local/lib/python2.5/test/seq_tests.pyt__hash__Ùs(RR	RRRT(((s*/usr/local/lib/python2.5/test/seq_tests.pyROÓs	i((R>R&(RRO((s*/usr/local/lib/python2.5/test/seq_tests.pyttest_contains_fakeÒscsŒdtfd„ƒY‰dd‡fd†ƒY}|id|ƒgƒ}|id|jƒ|i|ƒdgƒ}|iˆ|idƒdS(NtDoNotTestEqcBseZRS((RR	(((s*/usr/local/lib/python2.5/test/seq_tests.pyRVâstStopComparescseZ‡fd†ZRS(cs
ˆ‚dS(N((RRQ(RV(s*/usr/local/lib/python2.5/test/seq_tests.pyRRås(RR	RR((RV(s*/usr/local/lib/python2.5/test/seq_tests.pyRWäsi((t	ExceptionR&R>R+RM(RRWt
checkfirstt	checklast((RVs*/usr/local/lib/python2.5/test/seq_tests.pyttest_contains_orderÞscCs‰|it|iƒƒdƒ|it|igƒƒdƒ|it|idgƒƒdƒ|it|idddgƒƒdƒdS(Niiii(R(R
R&(R((s*/usr/local/lib/python2.5/test/seq_tests.pyttest_lenís"cCsH|idddgƒ}|it|ƒdƒ|it|ƒdƒdS(Niii(R&R(RKRL(RR1((s*/usr/local/lib/python2.5/test/seq_tests.pyttest_minmaxóscCsT|idgƒ}|iddgƒ}|i|||iƒƒ|i||iƒ|ƒ|i||idgƒ|ƒ|i|idgƒ||iddgƒƒ|i|iƒ|dƒ|i|iƒd|ƒ|i|iƒ|dƒ|i|iƒd|ƒ|i||dƒ|i|d|ƒ|i||dƒ|i|d|ƒ|i|||dƒ|i||d|ƒ|i|||dƒ|i||d|ƒ|i||||dƒ|i|||d|ƒd	|ifd
„ƒY}|ddgƒ}|i||dƒ|i||dj	ƒdS(NiiiÿÿÿÿllilitsubclasscBseZRS((RR	(((s*/usr/local/lib/python2.5/test/seq_tests.pyR^s(R&R(R>(RR3R4R^tu3((s*/usr/local/lib/python2.5/test/seq_tests.pyttest_addmuløs0 /c	Cs|iddgƒ}||iƒ7}|i||iddgƒƒ||iddgƒ7}|i||iddddgƒƒ||iddgƒ7}|i||iddddddgƒƒ|idƒ}||idƒ7}|i||id	ƒƒdS(
Niiiiiitspamteggstspameggs(R&R((RR1((s*/usr/local/lib/python2.5/test/seq_tests.pyt	test_iadds%+c	CsN|iddgƒ}|d9}|i||iddddddgƒƒdS(Niii(R&R((RR1((s*/usr/local/lib/python2.5/test/seq_tests.pyt	test_imul!s
cCs?d|ifd„ƒY}|it|dƒƒiƒdƒdS(NtTcBseZd„ZRS(cSst|ƒdS(Ns!!!(tstr(Rtkey((s*/usr/local/lib/python2.5/test/seq_tests.pyR)s(RR	R(((s*/usr/local/lib/python2.5/test/seq_tests.pyRf(sii(ii(R&R(titerR(RRf((s*/usr/local/lib/python2.5/test/seq_tests.pyttest_getitemoverwriteiter&scCs·x°tdƒD]¢}tt|ƒƒ}xAtddƒD]0}|i|i||ƒ|i|ƒ|ƒq5W|i|i|ƒd|igƒƒ|it|ƒt|dƒƒq
WdS(Niiýÿÿÿiiüÿÿÿi(R*R'R)R(R&tid(RtmR9tn((s*/usr/local/lib/python2.5/test/seq_tests.pyttest_repeat-s
.&cCs€ddk}|idjo`|idgƒ}|d9}|it|idƒt|dƒo|it|id	ƒq|ndS(
Niÿÿÿÿiÿÿÿiiit__imul__iii(tsystmaxintR&R+tMemoryErrort__mul__thasattrRo(RRpR((s*/usr/local/lib/python2.5/test/seq_tests.pyttest_bigrepeat5s
cCsÊ|iddgƒ}|i|idƒdƒ|i|idƒdƒ|i|idƒdƒ|i|idƒdƒ|it|idƒ|it|idƒ|i|itd	d
ƒƒ|idgƒƒ|i|itd
dƒƒ|idgƒƒ|i|itd	dƒƒ|iddgƒƒ|i|itd	dƒƒ|iddgƒƒ|i|itddƒƒ|igƒƒ|it|itd	dd	ƒƒ|it|id
ƒdS(Ni
illlÿÿÿÿlÿÿÿÿiýÿÿÿiiiiiR(R&R(RR+RARCRBR,(RRD((s*/usr/local/lib/python2.5/test/seq_tests.pyttest_subscript>s..11+"N(RR	RFR&R=R?RERJRNRUR[R\R]R`RdReRjRnRuRv(((s*/usr/local/lib/python2.5/test/seq_tests.pyRWs"	*			&								
					((((((((R
tunittestttestRRRRRRRRRt	itertoolsRRRtTestCaseR(((s*/usr/local/lib/python2.5/test/seq_tests.pys<module>s	
	
		

Man Man