ó ;œPc@sªddlmZdejfd„ƒYZdefd„ƒYZdejfd„ƒYZdefd „ƒYZd efd „ƒYZed „Ze d kr¦eƒndS(iÿÿÿÿ(tsupporttTestCasecBseZd„ZRS(cCsžtjj|ƒ|jj|_t|jjdƒf}g|_|jjj |_ |j j |j|ƒ|_ |jj |_ |jj|_|j j|_dS(Nt _NyHeapDefs_(RRtsetUptguppytsetstgetattrtsetsctroottheapytheapyctHeapViewthvt immnodesettnodesett mutnodesett NodeGrapht nodegraph(tselftheapdefs((sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_heapyc.pyRs (t__name__t __module__R(((sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_heapyc.pyRst TestHeapViewcBsGeZd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(cCs`|jj}g}|j|gƒ}|j||fgƒ}|j|jj|gƒ|j|gƒƒ|j|jj|gƒ|j|gƒƒ||_|j|jj|gƒ|jgƒƒ||_|j|jj|gƒ|jgƒƒg|j_|j|jj|gƒ|j|dgƒƒ|j|jj|gƒ|j|dgƒƒdS(N(R t _hiding_tag_RRtaseqtrelimgRtNone(Rt hiding_tagtatnstng((sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_heapyc.pyttest_hiding_tags ++ ( ( .csw|jjjj‰d}|g‰dˆf‡‡‡fd†ƒY‰ˆƒ}|jƒ|j|ˆgƒksst‚dS(NtxtHVcseZ‡‡‡fd†ZRS(csˆjˆˆdƒS(N((t__new__(R(R!R tnewroot(sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_heapyc.pyR".s(RRR"((R!R R#(sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_heapyc.pyR!-s(RR R R theapRtAssertionError(RR R ((R!R R#sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_heapyc.pyttest_inheritance_from_heapview&s  " cshˆj‰gˆ_ˆjj}ˆjj}x7t|fD])}d|fd„ƒY}d|fd„ƒY}|ƒ}|ƒ}g|_|ƒ}g|_g|_tdƒ} x5| D]-} |j | ƒ|j | ƒ|j | ƒq²Wˆj |gƒ} ˆj |gƒ} ˆj |gƒ} ˆj | | ko6| knƒˆj ˆj |gƒ|| ƒƒˆj ˆj |gƒ|| ||jgƒƒˆj ˆj |gƒ|| ||j|jgƒƒ‡‡fd†}ˆj ||| dƒ||| dƒƒˆj ||| dƒ||| dƒƒˆj |||jƒ|||jƒƒ|||jƒq7WdS(NtTcBseZdZRS(tt(R((RRt __slots__(((sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_heapyc.pyR'CstUcBseZdZRS(tu(R+(RRR)(((sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_heapyc.pyR*Fsics3ˆj||ƒ}ˆj|dt|ƒkƒ|S(N((((trelatetassert_tlen(tsrcttgttr(R R(sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_heapyc.pytrelesi(R RRR RtlistR(R+trangetappendt indisize_sumR-RR(RR RtbaseR'R*RR(R+tdataR tzatzttzuR2((R RsO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_heapyc.pyt#test_inheritance_from_special_types4s<              #"/5**(cCsdS(N((R((sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_heapyc.pyttest_nodeset_circularityosc Cs]|j}dtfd„ƒY}d|fd„ƒY}|j|ƒ|ƒ}|ƒ}|ƒ}g}g}g} ||_||_||_| |_|jj|||gƒ|jj|ƒ|jj|ƒ|jj|ƒ|jƒ} | | ksút‚|| ks t‚|| kst‚|| ks0t‚|| ksBt‚|| ksTt‚|j |_ |j |_ |jƒ} || ksŠt‚|| ksœt‚|| ks®t‚|| ksÀt‚|| ksÒt‚g} | |_ |jƒ} | | ksÿt‚|| kst‚|| ks#t‚|| ks5t‚|| ksGt‚|| ksYt‚dS(NtSetcBseZdZRS(tsomeRtother(R?RR@(RRR)(((sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_heapyc.pyR>zstDercBseZRS((RR(((sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_heapyc.pyRA}s( R tobjecttregister__hiding_tag__typeR?R@RR5R$R%R( RR R>RAtstdR(R?R@tdotherR the((sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_heapyc.pyttest_registered_hidingxsT               c CsHddlm}|j}g}|g}|jjd|gƒ|jjtdƒƒ|ƒ}|jƒ}|ƒ|}dG|GdGt|ƒGHdtfd„ƒY}d|fd „ƒY} |j |ƒ|ƒ} |j | _ | ƒ}|j |_ d | |g|jd d +|ƒ}|jƒ}|ƒ|} d G| GdGt|ƒGHdS(Niÿÿÿÿ(tclocki †telapsed0slen(x)R>cBseZdZRS(R?RR@(R?RR@(RRR)(((sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_heapyc.pyR>ÈsRAcBseZRS((RR(((sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_heapyc.pyRAËsi¨aiiPÃtelapsed1( ttimeRIR RtextendR4R$R.RBRCR( RRIR REthtstartR RJR>RARDRK((sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_heapyc.pyt test_timing³s,             cCsæ|j}ddd„ƒY}|ƒ}|j|_|ƒ}g}g}||_||_|jj||gƒ|jj|ƒ|jj|ƒ|jƒ}||ks¬t‚||ks¾t‚||ksÐt‚||ksât‚dS(NR>cBseZRS((RR(((sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_heapyc.pyR>æs((R RR?R@RR5R$R%(RR R>RDR(R?R@R ((sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_heapyc.pyttest_unregistered_hidingâs"       ( RRRR&R<R=RHRPRQ(((sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_heapyc.pyRs   ; ; /tTestLeakcBseZd„Zd„ZRS(c Csbddl}ddlm}tjj|ƒ|jj}t|j dƒf}g}|jj j }|j }|j }dtfd„ƒY} d| fd„ƒY} dtfd „ƒY} |jƒ|ƒ} | g} | j| ƒg}g}g}| ƒ}g}| |_||_||_| ƒ}| |_||_||_| ƒ}||_gtgD] }|^q[} ~|| |||||| | | | |tg }g|D]}||ƒ^q¤}~| |td d ƒO} |j|ƒg|D]}||ƒ^qê}~|g|D] }|^qƒ}d}|j|ƒ| j|ƒ||_|j||ƒ}|j| ƒ|jƒ}| |ksŠt‚||ksœt‚||ks®t‚||_|jƒ}~~~| j|ƒd}|jƒg|D]}||ƒ^qð}~|j ||ƒg|(| j!ƒg|D]}||ƒ^q3}~|j ||ƒdS( Niÿÿÿÿ(t getrefcountRR'cBseZdZRS(RRttonly(RRRT(RRR)(((sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_heapyc.pyR'sR*cBseZdZRS(tb(RU(RRR)(((sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_heapyc.pyR* stVcBseZdZRS(tc(RW(RRR)(((sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_heapyc.pyRVsi'i'("tgctsysRSRRRRRRRR R RRRBtcollectR5RRRTRURWR3R4RMRtaddR RCR$R%tdiscardRtclear(RRXtgrcRRRR RRR'R*RVRRRURGRWR(RTR+tvR tlitrcli0trclitrecR RNtnrclitnrcli0((sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_heapyc.pyttest_1üs„                  -           cspddl}ddlm}tjj|ƒ|jj}t|j dƒf}g}|jj j }|j }|j }|jƒg‰|ˆƒ} dtf‡fd†ƒY} d| fd„ƒY} | | _| ƒ} | ƒ} |j| ƒ|j| ƒ|j||ƒ}|jƒ}| |ks't‚d}d} } } } g|(|jƒ|ˆƒ}|j|| ƒdS(Niÿÿÿÿ(RSRR'cseZˆZRS((RRR ((tprobe(sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_heapyc.pyR'tsR*cBseZRS((RR(((sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_heapyc.pyR*ws(RXRYRSRRRRRRRR R tNodeSetRRZRBR*R5R R$R%RR(RRXR^RRRR RRtrcprobeR'R*R(R+R R tnrcprobe((RgsO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_heapyc.pyt test_weaky]s8              (RRRfRk(((sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_heapyc.pyRRús at TestNodeGraphcBseZd„Zd„ZRS(c Cs4|jƒ}|jddƒ|jddgdƒt|ƒ}|jƒ|d d dgksct‚|jƒ}|jƒ|ddddddgkst‚|jƒ}|jddƒt|jƒƒ}|jƒ||ksçt‚t|ƒ}|jƒ|ddddgkst‚|j dddgƒs9t‚|j ddddgƒ s[t‚|j ddgƒ}|j ƒ|j ddgƒks—t‚t|ƒ}|jƒ|ddgksÅt‚|j ƒ|j ddgƒksìt‚|jƒt|ƒ}|jƒ|ddgks$t‚|jƒ} t| ƒ} | jƒ| dddgksat‚| jdgƒ|j dgƒks‹t‚| jdddgƒ|j dddgƒksÁt‚| jddgƒ| jdddgƒ|j ddddgƒks t‚| jdgƒ} | jdddgƒ|j ddddgƒksXt‚| jdddgƒ|j ddddd gƒks”t‚t| dƒ} | jƒ| dd gksÆt‚t| ƒdksÞt‚d| ds ë—ª