%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/
Upload File :
Create Path :
Current File : //opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_RefPat.pyo

�
;�Pc@s�ddlmZddlZddlZddlZddlZdejfd��YZdefd��YZdefd��YZd	d
�Z	d�Z
edkr�e	�ndS(
i����(tsupportNtTestCasecBs,eZd�Zd�Zd�Zd�ZRS(cCs2tjj|�|jj|_|jj|_dS(N(RRtsetUptheapytRefPattUsetiso(tself((sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_RefPat.pyRscCs�g}g}x$t|�D]}|j|g�qW|g|}xvt|d�D]d}g}xOt|�D]A}g}|j|�x%t|�D]}	|j||	�q�WqjW|}qQW|}
|
|fS(Ni(trangetappend(Rtwidthtlengthtdsttlstitxstjtystktsrc((sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_RefPat.pyt	makegraph
s



cCs�g}g}x$t|�D]}|j|g�qW|g|}xvt|d�D]d}g}xOt|�D]A}g}|j|�x%t|�D]}	|j||	�q�WqjW|}qQW|}
|
|fS(Ni(RR	(RR
RRR
RRRRRR((sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_RefPat.pyR$s



cKsX|j}|dk	r$||�}n||�jd||�}d�|jjj_|S(NRcSsdS(Ns	<address>((ta((sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_RefPat.pyt<lambda>Cs(RtNonetget_rptmodtUniSettsummary_strtstr_address(RRRtkwdsRtrp((sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_RefPat.pyR>s	(t__name__t
__module__RRR(((sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_RefPat.pyRs			t
RefPatCasecBs,eZd�Zd�Zd�Zd�ZRS(cCs�g}}|g}x*td�D]}|g}|j|�q W|j||dd�}xFt|�D]8\}}|t|�kre|j|||j�qeqeW|j|dj|d�|j|dj|d�|j||dd�}|j|dj|d�|j|dj|d�|jt|�t|�d�|j||dd�}|jt|�t|�d�|j|jj|d�|j|j	j|d�|j||dd�}|j|j
j|d�|j|j	j|d�|dj|d�|jj�|jj
|j|d��|j|j	j|d�g}|j|�|g}|j||�}|j|jj|�|j|j	|j||��|j|j	|j
�|j|j	|d�dS(	Nitdepthi
ii����i����ii(RR	Rt	enumeratetlentasisttheonetaseqt_Rta2tViewtclear_retainerstupdate_referrersR(RRRtlistsRRtx((sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_RefPat.pyttest_basic_methodsHsD
		  

	cs�tj��g}�fd���j}d��fd�}g}|j|�|||�x-td�D]}|}g}|j|�qlW|||��jdd�\}}|||dd��jdd�\}}|||dd�}�t|j���jdd	�\}}|||dd
�}|j}�t|���t|j��|j}	�t|	��|j}
�t|
j���t|	j���|	j	��|	j
��jdd	�\}}|||dd�}�|j��|jj��jdd	�\}}|||dd�}�|j��j||dd�}�|j��j�j
�d
�dS(Ncs�|IJdS(N((R.(toutput(sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_RefPat.pytwrite�scs)�j|||�}�t|��|S(N(Rtrepr(RRtresultRR(RR1(sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_RefPat.pyttest_pp�siiR"i
iiii#iis�Reference Pattern by <[dict of] class>.
 0: _ --- [-] 1 list: <address>*0
 1: a      [-] 1 list: <address>*1
 2: aa ---- [R] 1 tuple: <address>*1
Reference Pattern by <[dict of] class>.
 0: _ --- [-] 1 list: <address>*0
 1: a      [-] 1 list: <address>*1
 2: aa ---- [-] 1 list: <address>*1
 3: a3       [-] 1 list: <address>*1
 4: a4 ------ [-] 1 list: <address>*1
 5: a5         [-] 1 list: <address>*1
 6: a6 -------- [-] 1 list: <address>*1
 7: a7           [R] 1 tuple: <address>*1
Reference Pattern by <[dict of] class>.
 0: _ --- [-] 1 list: <address>*0
 1: a      [-] 5 list: <address>*5, <address>*5, <address>*5, <address>*5...
 2: aa ---- [-] 5 list: <address>*5, <address>*5, <address>*5, <address>*5...
 3: a3       [-] 5 list: <address>*5, <address>*5, <address>*5, <address>*5...
 4: a4 ------ [-] 5 list: <address>*5, <address>*5, <address>*5, <address>*5...
 5: a5         [-] 5 list: <address>*5, <address>*5, <address>*5, <address>*5...
 6: a6 -------- [-] 5 list: <address>*5, <address>*5, <address>*5...
 7: a7           [-] 1 list: <address>*5
 8: a8 ---------- [R] 1 tuple: <address>*1
Reference Pattern by <[dict of] class>.
 0: _ --- [-] 1 list: <address>*0
 1: a      [-] 5 list: <address>*5, <address>*5, <address>*5, <address>*5...
 2: aa ---- [-] 5 list: <address>*5, <address>*5, <address>*5, <address>*5...
 3: a3       [-] 5 list: <address>*5, <address>*5, <address>*5, <address>*5...
 4: a4 ------ [-] 5 list: <address>*5, <address>*5, <address>*5, <address>*5...
 5: a5         [-] 5 list: <address>*5, <address>*5, <address>*5, <address>*5...
 6: a6 -------- [-] 5 list: <address>*5, <address>*5, <address>*5...
 7: a7           [-] 5 list: <address>*5, <address>*5, <address>*5...
 8: a8 ---------- [-] 5 list: <address>*5, <address>*5, <address>*5...
 9: a9             [-] 5 list: <address>*5, <address>*5, <address>*5...
<Type e.g. '_.more' for more.>
10: a10 ----------- [-] 5 list: <address>*5, <address>*5, <address>*5...
11: a11              [-] 5 list: <address>*5, <address>*5, <address>*5...
12: a12 ------------- [-] 5 list: <address>*5, <address>*5, <address>*5...
13: a13                [-] 5 list: <address>*5, <address>*5, <address>*5...
14: a14 --------------- [-] 5 list: <address>*5, <address>*5, <address>*5...
15: a15                  [-] 5 list: <address>*5, <address>*5, <address>*5...
16: a16 ----------------- [-] 5 list: <address>*5, <address>*5, <address>*5...
17: a17                    [+] 1 list: <address>*5
Reference Pattern by <[dict of] class>.
 0: _ --- [-] 1 list: <address>*0
 1: a      [-] 1 list: <address>*1
 2: aa ---- [-] 1 list: <address>*1
 3: a3       [-] 1 list: <address>*1
 4: a4 ------ [-] 1 list: <address>*1
 5: a5         [-] 1 list: <address>*1
 6: a6 -------- [-] 1 list: <address>*1
 7: a7           [-] 1 list: <address>*1
 8: a8 ---------- [-] 1 list: <address>*1
 9: a9             [-] 1 list: <address>*1
<Type e.g. '_.more' for more.>
10: a10 ----------- [-] 1 list: <address>*1
11: a11              [-] 1 list: <address>*1
12: a12 ------------- [-] 1 list: <address>*1
13: a13                [-] 1 list: <address>*1
14: a14 --------------- [-] 1 list: <address>*1
15: a15                  [-] 1 list: <address>*1
16: a16 ----------------- [-] 1 list: <address>*1
17: a17                    [-] 1 list: <address>*1
18: a18 ------------------- [-] 1 list: <address>*1
19: a19                      [-] 1 list: <address>*1
<Type e.g. '_.more' for more.>
20: a20 --------------------- [-] 1 list: <address>*1
21: a21                        [-] 1 list: <address>*1
22: a22 ----------------------- [-] 1 list: <address>*1
23: a23                          [-] 1 list: <address>*1
24: a24 ------------------------- [-] 1 list: <address>*1
25: a25                            [-] 1 list: <address>*1
26: a26 --------------------------- [-] 1 list: <address>*1
27: a27                              [-] 1 list: <address>*1
28: a28 ----------------------------- [-] 1 list: <address>*1
29: a29                                [-] 1 list: <address>*1
<Type e.g. '_.more' for more.>
20: a20 --------------------- [-] 1 list: <address>*1
21: a21                        [-] 1 list: <address>*1
22: a22 ----------------------- [-] 1 list: <address>*1
23: a23                          [-] 1 list: <address>*1
24: a24 ------------------------- [-] 1 list: <address>*1
25: a25                            [-] 1 list: <address>*1
26: a26 --------------------------- [-] 1 list: <address>*1
27: a27                              [-] 1 list: <address>*1
28: a28 ----------------------------- [-] 1 list: <address>*1
29: a29                                [-] 1 list: <address>*1
<Type e.g. '_.more' for more.>
30: a30 ------------------------------- [-] 1 list: <address>*1
31: a31                                  [R] 1 tuple: <address>*1
30: a30 ------------------------------- [-] 1 list: <address>*1
31: a31                                  [R] 1 tuple: <address>*1
Reference Pattern by <[dict of] class>.
 0: _ --- [-] 1 list: <address>*0
 1: a      [-] 1 list: <address>*1
 2: aa ---- [-] 1 list: <address>*1
 3: a3       [-] 1 list: <address>*1
 4: a4 ------ [-] 1 list: <address>*1
 5: a5         [-] 1 list: <address>*1
 6: a6 -------- [-] 1 list: <address>*1
 7: a7           [-] 1 list: <address>*1
 8: a8 ---------- [-] 1 list: <address>*1
 9: a9             [-] 1 list: <address>*1
<22 more lines. Type e.g. '_.more' for more.>
10: a10 ----------- [-] 1 list: <address>*1
11: a11              [-] 1 list: <address>*1
12: a12 ------------- [-] 1 list: <address>*1
13: a13                [-] 1 list: <address>*1
14: a14 --------------- [-] 1 list: <address>*1
15: a15                  [-] 1 list: <address>*1
16: a16 ----------------- [-] 1 list: <address>*1
17: a17                    [-] 1 list: <address>*1
18: a18 ------------------- [-] 1 list: <address>*1
19: a19                      [-] 1 list: <address>*1
<12 more lines. Type e.g. '_.more' for more.>
Reference Pattern by <[dict of] class>.
 0: _ --- [-] 1 list: <address>*0
 1: a      [-] 1 list: <address>*1
 2: aa ---- [-] 1 list: <address>*1
 3: a3       [-] 1 list: <address>*1
 4: a4 ------ [-] 1 list: <address>*1
 5: a5         [-] 1 list: <address>*1
 6: a6 -------- [-] 1 list: <address>*1
 7: a7           [-] 1 list: <address>*1
 8: a8 ---------- [-] 1 list: <address>*1
 9: a9             [-] 1 list: <address>*1
10: a10 ----------- [+] 1 list: <address>*1


Reference Pattern by <[dict of] class>.
 0: _ --- [-] 1 list: <address>*0
 1: a      [-] 1 list: <address>*1
 2: aa ---- [-] 1 list: <address>*1
 3: a3       [-] 1 list: <address>*1
 4: a4 ------ [-] 1 list: <address>*1
 5: a5         [-] 1 list: <address>*1
 6: a6 -------- [-] 1 list: <address>*1
 7: a7           [-] 1 list: <address>*1
 8: a8 ---------- [-] 1 list: <address>*1
 9: a9             [-] 1 list: <address>*1
<Type e.g. '_.more' for more.>
10: a10 ----------- [-] 1 list: <address>*1
11: a11              [-] 1 list: <address>*1
12: a12 ------------- [-] 1 list: <address>*1
13: a13                [-] 1 list: <address>*1
14: a14 --------------- [-] 1 list: <address>*1
15: a15                  [-] 1 list: <address>*1
16: a16 ----------------- [-] 1 list: <address>*1
17: a17                    [-] 1 list: <address>*1
18: a18 ------------------- [-] 1 list: <address>*1
19: a19                      [-] 1 list: <address>*1
<Type e.g. '_.more' for more.>
10: a10 ----------- [-] 1 list: <address>*1
11: a11              [-] 1 list: <address>*1
12: a12 ------------- [-] 1 list: <address>*1
13: a13                [-] 1 list: <address>*1
14: a14 --------------- [-] 1 list: <address>*1
15: a15                  [-] 1 list: <address>*1
16: a16 ----------------- [-] 1 list: <address>*1
17: a17                    [-] 1 list: <address>*1
18: a18 ------------------- [-] 1 list: <address>*1
19: a19                      [-] 1 list: <address>*1
20: a20 --------------------- [+] 1 list: <address>*1
(tStringIORRR	RRR2tmoretstrttoptprevRR'tgetvalue(RRtRR4RRR.Rtmtm1tm2((R0RR1sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_RefPat.pyttest_presentation�sR	


			





�c	Cs�ddl}g}|g}|g}|f}|g}||g}|j||�}|j|jj|�|j�|j|jj|�|j|jj|d|�dS(Ni����i(	tgcRR%R(R&tcollecttaaR*trg(	RR@RRRBtbtbaRR((sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_RefPat.pyttest_referrer_registration�s				
cCs�ddl}g}|g}|j|g�|j||dddd�}|j|jj|�|j|jj|�g}dd
d��Y}|�}||_i|d6}||f}|j�|j||dd�}d	|j	j
_|j|jj|�|j|jj|j
�t|jjj�}|j|d	k�~~|j}	d|j	j
_~|j�t|	jj�}
|j|
d	k�dS(Ni����R"i
timdomitAcBseZRS((RR (((sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_RefPat.pyRH�sRi((R@R	RR%R(R&RRRAtert
classifiertis_clear_drg_enabledRDt__dict__R$RR*tdict_ownershiptassert_(RR@RRRRHRRDtlnRtlnnow((sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_RefPat.pyttest_some_more_advanced_usages�s8			

	
(RR R/R?RFRQ(((sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_RefPat.pyR!Gs
	E	�	tNewCasecBseZd�Zd�ZRS(cCs�g}|g}|g}||g}|j||�}|j|j|j||��|j�|j�|j|j|j|��dS(N(RR'RRtpoptreset(RRRRDRR((sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_RefPat.pyt
test_reset�s		

c	Cs�g}|gdgd}|g}||g}|j||�}d}|jt|jd��|�||jd� }|jt|jddi|j|�d6��|�|jt|jdddd|j|�g��|�dS(Ni(s�Paths from source 'a3' to target '_'.
 0: a3 [0] @ [0]
 1: aa [0]  @ [0]
 2: a  [0]   @ [0]
 3: _  [0]    = <1 list: <address>*0>
 4: aa [0]  @ [1]
 5: a  [1]   @ [0] -> #3ta3s
 4:tandsetsR(RRR'R7tpathstindexR(RRRRDRRtexpected((sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_RefPat.pyt
test_paths�s		5(RR RUR[(((sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_RefPat.pyRR�s	icCs$tjt|�tjt|�dS(N(Rtrun_unittestR!RR(tdebug((sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_RefPat.pyt	test_mainscCs�ddlm}ddl}ddl}ddl}d}|�x9d|G|j�GH|d7}t�|j�|�qDWdS(Ni����(t	xmemstatsis[%d]i(tguppy.heapy.heapycR_R@tsysttimetasctimeR^RA(R_R@RaRbR((sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_RefPat.pyt	test_leaks$

t__main__(tguppy.heapy.testRR5RattypestunittestRR!RRR^RdR(((sO/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_RefPat.pyt<module>s0C��2	

Zerion Mini Shell 1.0