config root man

Current Path : /compat/linux/proc/self/root/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 : //compat/linux/proc/self/root/usr/local/lib/python2.5/test/test_heapq.pyo

³ò
h”Rc	@s·dZddklZlZlZlZlZlZddkZddk	Z	ddk
lZddkZd„Z
de	ifd„ƒYZdd$d	„ƒYZd
d%d„ƒYZdd&d
„ƒYZd„Zdd'd„ƒYZdd(d„ƒYZdd)d„ƒYZdd*d„ƒYZdd+d„ƒYZdd,d„ƒYZdd-d„ƒYZddklZlZd„Zde	ifd „ƒYZdd!„Z!e"d"joe!d#e#ƒndS(.sUnittests for heapq.iÿÿÿÿ(theappushtheappoptheapifytheapreplacetnlargestt	nsmallestN(ttest_supportccs/yxt|ƒVqWntj
onXdS(N(Rt
IndexError(theap((s+/usr/local/lib/python2.5/test/test_heapq.pytheapiter
s
tTestHeapcBsPeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	RS(cCs&g}g}|i|ƒxGtdƒD]9}tiƒ}|i|ƒt||ƒ|i|ƒq&Wg}x2|o*t|ƒ}|i|ƒ|i|ƒqlW|}|iƒ|i||ƒ|i|ƒ|it	tgƒy-|it	tddƒ|it	tdƒWntj
onXdS(Ni(tcheck_invarianttrangetrandomtappendRRtsorttassertEqualtassertRaisest	TypeErrortNonetAttributeError(tselfRtdatatititemtresultstdata_sorted((s+/usr/local/lib/python2.5/test/test_heapq.pyt
test_push_pops2






cCsQxJt|ƒD]<\}}|o)|dd?}|i|||jƒq
q
WdS(Ni(t	enumeratetassert_(RRtposRt	parentpos((s+/usr/local/lib/python2.5/test/test_heapq.pyR0s

cCsrxXtdƒD]J}g}t|ƒD]}|tiƒq$~}t|ƒ|i|ƒq
W|ittdƒdS(Ni(RR
RRRRR(Rtsizet_[1]tdummyR((s+/usr/local/lib/python2.5/test/test_heapq.pyttest_heapify7s
-
cCsg}tdƒD]}|tidƒq~}g}x<|D]4}t||ƒt|ƒdjot|ƒq=q=W|iƒ|i|t|ƒdƒdS(NièiÐi
iöÿÿÿ(	RR
t	randrangeRtlenRRRtsorted(RR!RRRR((s+/usr/local/lib/python2.5/test/test_heapq.pyttest_naive_nbest?s0

cCsäg}tdƒD]}|tidƒq~}|d }t|ƒx4|dD](}||djot||ƒqOqOW|itt|ƒƒt|ƒdƒ|i	t
tdƒ|i	t
tddƒ|i	ttgdƒdS(NièiÐi
iiöÿÿÿ(
RR
R$RRRtlistR	R&RRRR(RR!RRRR((s+/usr/local/lib/python2.5/test/test_heapq.pyt
test_nbestIs0

&c
CsáxÚtdƒD]Ì}tidƒ}g}t|ƒD]}|tidƒq3~}|d@o|}t|ƒn%g}x|D]}t||ƒqWg}t|ƒD]}|t|ƒq§~}	|i|	t|ƒƒq
WdS(Nidi2ii(	txrangeR
R$RRRRRR&(
RttrialR R!RRRRt_[2]theap_sorted((s+/usr/local/lib/python2.5/test/test_heapq.pyt
test_heapsort[s
0-cCs·g}tdƒD]}|tidƒ|fq~}xzdd„fD]i}x`d
D]X}|it||ƒt|ƒ| ƒ|it||d|ƒt|d|ƒ| ƒqSWqFWdS(NièiÐcSs|dddS(ii#iÐ((tx((s+/usr/local/lib/python2.5/test/test_heapq.pyt<lambda>lsiiii
idiiçiLtkey(	iiii
idiiçièiL(RR
R$RRRR&(RR!RRtftn((s+/usr/local/lib/python2.5/test/test_heapq.pyttest_nsmallestjs6#c
CsÃg}tdƒD]}|tidƒ|fq~}x†dd„fD]u}xldD]d}|it||ƒt|dtƒ| ƒ|it||d
|ƒt|d
|dtƒ| ƒqSWqFWdS(NièiÐcSs|dddS(ii#iÐ((R/((s+/usr/local/lib/python2.5/test/test_heapq.pyR0tsiiii
idiiçiLtreverseR1(	iiii
idiiçièiL(RR
R$RRRR&tTrue(RR!RRR2R3((s+/usr/local/lib/python2.5/test/test_heapq.pyt
test_nlargestrs6)(
t__name__t
__module__RRR#R'R)R.R4R7(((s+/usr/local/lib/python2.5/test/test_heapq.pyR
s				
			tLenOnlycBseZdZd„ZRS(s:Dummy sequence class defining __len__ but not __getitem__.cCsdS(Ni
((R((s+/usr/local/lib/python2.5/test/test_heapq.pyt__len__s(R8R9t__doc__R;(((s+/usr/local/lib/python2.5/test/test_heapq.pyR:}stGetOnlycBseZdZd„ZRS(s:Dummy sequence class defining __getitem__ but not __len__.cCsdS(Ni
((Rtndx((s+/usr/local/lib/python2.5/test/test_heapq.pyt__getitem__„s(R8R9R<R?(((s+/usr/local/lib/python2.5/test/test_heapq.pyR=‚stCmpErrcBseZdZd„ZRS(s;Dummy element that always raises an error during comparisoncCs
t‚dS(N(tZeroDivisionError(Rtother((s+/usr/local/lib/python2.5/test/test_heapq.pyt__cmp__‰s(R8R9R<RC(((s+/usr/local/lib/python2.5/test/test_heapq.pyR@‡sccsx|D]}|VqWdS(sRegular generatorN((tseqnR((s+/usr/local/lib/python2.5/test/test_heapq.pytRŒstGcBs eZdZd„Zd„ZRS(sSequence using __getitem__cCs
||_dS(N(RD(RRD((s+/usr/local/lib/python2.5/test/test_heapq.pyt__init__“scCs|i|S(N(RD(RR((s+/usr/local/lib/python2.5/test/test_heapq.pyR?•s(R8R9R<RGR?(((s+/usr/local/lib/python2.5/test/test_heapq.pyRF‘s	tIcBs)eZdZd„Zd„Zd„ZRS(s Sequence using iterator protocolcCs||_d|_dS(Ni(RDR(RRD((s+/usr/local/lib/python2.5/test/test_heapq.pyRGšs	cCs|S(N((R((s+/usr/local/lib/python2.5/test/test_heapq.pyt__iter__scCsF|it|iƒjo
t‚n|i|i}|id7_|S(Ni(RR%RDt
StopIteration(Rtv((s+/usr/local/lib/python2.5/test/test_heapq.pytnextŸs

(R8R9R<RGRIRL(((s+/usr/local/lib/python2.5/test/test_heapq.pyRH˜s		tIgcBs eZdZd„Zd„ZRS(s9Sequence using iterator protocol defined with a generatorcCs||_d|_dS(Ni(RDR(RRD((s+/usr/local/lib/python2.5/test/test_heapq.pyRG§s	ccsx|iD]}|Vq
WdS(N(RD(Rtval((s+/usr/local/lib/python2.5/test/test_heapq.pyRIªs
(R8R9R<RGRI(((s+/usr/local/lib/python2.5/test/test_heapq.pyRM¥s	tXcBs eZdZd„Zd„ZRS(s Missing __getitem__ and __iter__cCs||_d|_dS(Ni(RDR(RRD((s+/usr/local/lib/python2.5/test/test_heapq.pyRG°s	cCsF|it|iƒjo
t‚n|i|i}|id7_|S(Ni(RR%RDRJ(RRK((s+/usr/local/lib/python2.5/test/test_heapq.pyRL³s

(R8R9R<RGRL(((s+/usr/local/lib/python2.5/test/test_heapq.pyRO®s	tNcBs eZdZd„Zd„ZRS(sIterator missing next()cCs||_d|_dS(Ni(RDR(RRD((s+/usr/local/lib/python2.5/test/test_heapq.pyRG»s	cCs|S(N((R((s+/usr/local/lib/python2.5/test/test_heapq.pyRI¾s(R8R9R<RGRI(((s+/usr/local/lib/python2.5/test/test_heapq.pyRP¹s	tEcBs)eZdZd„Zd„Zd„ZRS(sTest propagation of exceptionscCs||_d|_dS(Ni(RDR(RRD((s+/usr/local/lib/python2.5/test/test_heapq.pyRGÃs	cCs|S(N((R((s+/usr/local/lib/python2.5/test/test_heapq.pyRIÆscCsdddS(Nii((R((s+/usr/local/lib/python2.5/test/test_heapq.pyRLÈs(R8R9R<RGRIRL(((s+/usr/local/lib/python2.5/test/test_heapq.pyRQÁs		tScBs)eZdZd„Zd„Zd„ZRS(sTest immediate stopcCsdS(N((RRD((s+/usr/local/lib/python2.5/test/test_heapq.pyRGÍscCs|S(N((R((s+/usr/local/lib/python2.5/test/test_heapq.pyRIÏscCs
t‚dS(N(RJ(R((s+/usr/local/lib/python2.5/test/test_heapq.pyRLÑs(R8R9R<RGRIRL(((s+/usr/local/lib/python2.5/test/test_heapq.pyRRËs		(tchaintimapcCs(ttd„ttt|ƒƒƒƒƒS(s Test multiple tiers of iteratorscSs|S(((R/((s+/usr/local/lib/python2.5/test/test_heapq.pyR0×s(RSRTRERMRF(RD((s+/usr/local/lib/python2.5/test/test_heapq.pytLÕstTestErrorHandlingcBs>eZd„Zd„Zd„Zd„Zd„Zd„ZRS(cCsax'ttfD]}|it|dƒq
Wx0ttttfD]}|it|ddƒq=WdS(Ni
(RRRRRRRR(RR2((s+/usr/local/lib/python2.5/test/test_heapq.pyttest_non_sequenceÛs
c
Cs‘x*ttfD]}|it|tƒƒq
Wx-ttfD]}|it|tƒdƒq:Wx-ttfD]}|it|dtƒƒqjWdS(Ni
i(	RRRRR:RRRR(RR2((s+/usr/local/lib/python2.5/test/test_heapq.pyt
test_len_onlyás


c
Cs‘x*ttfD]}|it|tƒƒq
Wx-ttfD]}|it|tƒdƒq:Wx-ttfD]}|it|dtƒƒqjWdS(Ni
i(	RRRRR=RRRR(RR2((s+/usr/local/lib/python2.5/test/test_heapq.pyt
test_get_onlyés


c
Cs tƒtƒtƒg}x'ttfD]}|it||ƒq%Wx*ttfD]}|it||dƒqOWx*ttfD]}|it|d|ƒq|WdS(Ni
i(	R@RRRRARRRR(RtseqR2((s+/usr/local/lib/python2.5/test/test_heapq.pyRYñs


cCs:x3ttttttfD]}|it|dƒqWdS(Ni
(RRRRRRRR(RR2((s+/usr/local/lib/python2.5/test/test_heapq.pyttest_arg_parsingúsc
CsxttfD]ó}xêddtdƒd
tdddƒfD]Á}xEtttttfD].}|i	|d	||ƒƒ|d	|ƒƒqWW|i	|d	t
|ƒƒgƒ|it|d	t
|ƒƒ|it|d	t|ƒƒ|it|d	t|ƒƒq;Wq
WdS(Nt123tiètdog333333ó?iÐi˜ii(R^g333333ó?(RRRR*RFRHRMRURERRRRRRORPRARQ(RR2tstg((s+/usr/local/lib/python2.5/test/test_heapq.pyttest_iterable_argsþs
(,(R8R9RWRXRYR[Ra(((s+/usr/local/lib/python2.5/test/test_heapq.pyRVÙs						cCsÈddkl}tg}tt|ƒo|itƒnti|Œ|ovt	t
dƒofddk}dgd}xAt
t|ƒƒD]-}ti|Œ|iƒt
iƒ||<qŠW|GHndS(Niÿÿÿÿ(tBuiltinFunctionTypetgettotalrefcounti(ttypesRbR
t
isinstanceRRRVRtrun_unittestthasattrtsystgcRR*R%tcollectRc(tverboseRbttest_classesRitcountsR((s+/usr/local/lib/python2.5/test/test_heapq.pyt	test_mains	



t__main__Rk((((((((((($R<theapqRRRRRRR
tunittestttestRRhR	tTestCaseR
R:R=R@RERFRHRMRORPRQRRt	itertoolsRSRTRURVRRnR8R6(((s+/usr/local/lib/python2.5/test/test_heapq.pys<module>s0.	k	
	
		2


Man Man