Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 3.15.18.136
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : test_marshal.pyc
�
?��cc@s�ddlmZddlZddlZddlZddlZyddlZWnek
ridZnXdej	fd��YZ
dej	fd��YZdej	fd��YZd	ej	fd
��YZ
dej	fd��YZd
ej	fd��YZdej	fd��YZdZejdkr4dndZejdkrOdndZejeejkd�dej	fd��Y�Zejejed�dej	fd��Y��Zd�Zedkr�e�ndS( i����(ttest_supportNtIntTestCasecBs#eZd�Zd�Zd�ZRS(cCs�tj}x�|r�x�||fD]{}tj|�}tj|�}|j||�tj|ttj	d��tj
ttj	d��}|j||�q W|d?}qWtjtj	�dS(Ntwbtrbi(
tsystmaxinttmarshaltdumpstloadstassertEqualtdumptfileRtTESTFNtloadtostunlink(tselftntexpectedtstgot((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyt	test_intss		cCs�d�}d
}|d}x~||||d?fD]d}x[|r�d||d�}tj|�}|j||�|dkr�d}q<|dL}q<Wq3WdS(NcSsKg}x5t|�D]'}|jt|d@��|dL}qWdj|�S(Ni�it(trangetappendtchrtjoin(tvaluetnbytestbytesti((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pytto_little_endian_string!s
li?itIii����ill����(RRR	(RRtmaxint64tminint64tbaseRR((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyt
test_int64s			cCs�x�ttfD]�}tjtj|��}|j||�|jt|�t|��tj|tt	j
d��tjtt	j
d��}|j||�|jt|�t|��q
WdS(NRR(tTruetFalseRRRR	ttypeR
RRRR
(Rtbtnew((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyt	test_bool5s(t__name__t
__module__RR$R*(((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyRs		t
FloatTestCasecBseZd�ZRS(cCs�d}tjd}x�||kr�x�||fD]�}t|�}tj|�}tj|�}|j||�tj|tt	j
d��tjtt	j
d��}|j||�q0W|d:}qWd}tj|d�}tj|�}|j||�tj|d�}tj|�}|j||�tjd	}x.||krnx||fD]}t|�}tj|�}tj|�}|j||�tj|d�}tj|�}|j||�tj|tt	j
d��tjtt	j
d��}|j||�tj|tt	j
d�d�tjtt	j
d��}|j||�q[W|d9}qAWtj
t	j
�dS(
Ng�}���:g�6�ҫ�sRRgS��:�^@giig��Z1%(RRtfloatRRRR	R
RRRR
RR(RtsmallRRtfRR((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyttest_floats@sJ

(R+R,R1(((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyR-?stStringTestCasecBs#eZd�Zd�Zd�ZRS(cCs�x�dddddgD]�}tjtj|��}|j||�|jt|�t|��tj|ttjd��tj	ttjd��}|j||�|jt|�t|��qWt
jtj�dS(Nuu
Andrè Previnuabcu i'RR(RRRR	R'R
RRRR
RR(RRR)((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyttest_unicodeps cCs�x�dddddgD]�}tjtj|��}|j||�|jt|�t|��tj|ttjd��tj	ttjd��}|j||�|jt|�t|��qWt
jtj�dS(NRsAndr� Previntabct i'RR(RRRR	R'R
RRRR
RR(RRR)((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyttest_string{s cCs�x�dddddgD]�}tjdtf��t|�}WdQXtjtj|��}|j||�tj|t	tj
d��tjt	tj
d��}|j||�qWtj
tj
�dS(	NRsAndr� PrevinR4R5i'sbuffer.. not supportedRR(Rtcheck_py3k_warningstDeprecationWarningtbufferRRRR	R
RRR
RR(RRR(R)((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyttest_buffer�s	
(R+R,R3R6R:(((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyR2os		tExceptionTestCasecBseZd�ZRS(cCs,tjtjt��}|jt|�dS(N(RRRt
StopIterationR	(RR)((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyttest_exceptions�s(R+R,R=(((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyR;�stCodeTestCasecBseZd�ZRS(cCs8tjj}tjtj|��}|j||�dS(N(R;R=t	func_codeRRRR	(RtcoR)((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyt	test_code�s(R+R,RA(((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyR>�stContainerTestCasecBsmeZidd6dd6dd6dd6d	gd
6dd6ed
6dd6Zd�Zd�Zd�Zd�ZRS(sfoo@bar.baz.spamtastringgH�zns�@tafloatiitanintlt
ashortlongs.zyx.41talisti
tatupletabooleanu
Andrè PrevintaunicodecCs�tjtj|j��}|j|j|�tj|jttjd��tj	ttjd��}|j|j|�t
jtj�dS(NRR(RRRtdR	R
RRRR
RR(RR)((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyt	test_dict�scCs�|jj�}tjtj|��}|j||�tj|ttj	d��tj
ttj	d��}|j||�tjtj	�dS(NRR(
RKtitemsRRRR	R
RRRR
RR(RtlstR)((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyt	test_list�scCs�t|jj��}tjtj|��}|j||�tj|tt	j
d��tjtt	j
d��}|j||�tj
t	j
�dS(NRR(ttupleRKtkeysRRRR	R
RRRR
RR(RttR)((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyt
test_tuple�scCs�x�ttfD]�}||jj��}tjtj|��}|j||�|jt	||��|j
t|�t|��tj|t
tjd��tjt
tjd��}|j||�tjtj�q
WdS(NRR(tsett	frozensetRKRQRRRR	t
assertTruet
isinstancetassertNotEqualtidR
RRRR
RR(RtconstructorRRR)((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyt	test_sets�si(s.zyx.41(
s.zyx.41s.zyx.41s.zyx.41s.zyx.41s.zyx.41s.zyx.41s.zyx.41s.zyx.41s.zyx.41s.zyx.41(R+R,R&RKRLRORSR[(((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyRB�s


					tBugsTestCasecBsYeZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
RS(	cCstjdgd�dS(Ni�i�(RR(R((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyttest_bug_5888452�scCsS|jttjd�|jttjd�|jttjtjd�d �dS(Nt0R0li����(tassertRaisest	ExceptionRRR(R((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyttest_patch_873224�scCsN|jtjtjdd��d�|jtjtjdd��d�dS(Niii(R	RRR(R((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyttest_version_argument�s%cCsYxRgtd�D]}t|�^qD]+}ytj|�Wq&tk
rPq&Xq&WdS(Ni(RRRRR`(RRtc((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyt	test_fuzz�s
,
cs9d�}|dtj��fd�}|d|�dS(NcSsT|d|d�|d|d�|d|dd|�|d|d�dS(Ns(tNs[s{NR^s>((Retcheck((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyt	run_tests�sidcs�jttj|�dS(N(R_t
ValueErrorRR(R(R(s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyRf�siii(RR(RRgRf((Rs8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyttest_loads_recursion�s	cCsg}}tjdkr1ttd�r1d}nd}x2t|d�D] }|jdg�|d}qHWtj|�}tj|�}|j	t
|�t
|��|j	t
|d�t
|d��|j	t
|d�t
|d��|jdg�|jttj|�dS(Ntnttgettotalrefcounti�i�iii����(
RtnamethasattrRRRRRRR	tlenR_Rh(RtheadtlasttMAX_MARSHAL_STACK_DEPTHRtdatatnew_head((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyttest_recursion_limit�s
	$$c	Cs^xWtttttttttf	D]4}t	d|fi�}|j
ttj
|��q"WdS(Ntsubtyp(tinttlongR.tcomplexRPtlisttdictRTRUR'R_RhRR(RttypRu((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyttest_exact_type_matchs(cCs'td�}d|}tj|�dS(Ng��.AR4(RvRR(Rtsizet
testString((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyttest_large_marshals
cCs d}|jttj|�dS(Ns	l(R_RhRR(Rtinvalid_string((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyttest_invalid_longs s(R+R,R]RaRbRdRiRtR|RR�(((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyR\�s								
	iii��iI����is!test cannot run on 32-bit systemstLargeValuesTestCasecBsPeZd�Zejdeddde�d��Zejdededde�d��Z	ejdede
de�d��Zejdede
de�d	��Zejdede
d
e
jed�de�d��Zejdede
d
e
jed�de�d��Zejdeddde�d
��ZRS(c	CsRttjd�}|jtjtj�|�|jttj||�WdQXdS(NR(	topenRRt
addCleanupRR_RhRR
(RRrR0((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pytcheck_unmarshallable+sR}tmemuseitdry_runcCs|jd|�dS(Ntx(R�(RR}((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyR61sicCs|jd|�dS(Nux(R�(RR}((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyR35scCs|jd|�dS(N(N(R�tNone(RR}((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyRS:scCs|jdg|�dS(N(R�R�(RR}((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyRO?sicCs|jtt|���dS(N(R�RTR(RR}((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyttest_setDscCs|jtt|���dS(N(R�RUR(RR}((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyttest_frozensetJscCs|jt|��dS(N(R�t	bytearray(RR}((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyttest_bytearrayPs(R+R,R�Rtprecisionbigmemtestt
LARGE_SIZER&R6tcharacter_sizeR3tpointer_sizeRSRORt	getsizeofR�R�R�(((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyR�)s	'srequires _testcapit
CAPI_TestCasecBs>eZd�Zd�Zd�Zd�Zd�Zd�ZRS(cCsxxttjd�D]c}tjdtj|�ttjd��}|j�}WdQXtj	tj�|j
|d�qWdS(NiixV4RsxV4(RRtversiont	_testcapitpymarshal_write_long_to_fileRRR�treadRR	(RtvR0Rr((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyttest_write_long_to_fileYscCs�dddddddf}x�ttjd	�D]l}tj|tj|�ttjd
��}|j�}WdQXtj	tj�|j
tj|�|�q0WdS(Ns\u20acR4i{g������F@iy @s
long line i�iRy@ @(RRR�R�tpymarshal_write_object_to_fileRRR�R�RR	R(RtobjR�R0Rr((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyttest_write_object_to_fileascCstttjd��}|jd�WdQXtjtj�\}}tjtj�|j|d�|j|d�dS(NRs4xxxxi4i(R�RRtwriteR�tpymarshal_read_short_from_fileRR	(RR0trtp((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyttest_read_short_from_filejscCstttjd��}|jd�WdQXtjtj�\}}tjtj�|j|d�|j|d�dS(NRsxV4xxxxixV4i(R�RRR�R�tpymarshal_read_long_from_fileRR	(RR0R�R�((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyttest_read_long_from_filerscCs�ddddd
f}x�ttjd�D]|}tj||�}ttjd��}|j|d	�WdQXtj	tj�\}}tj
tj�|j||�q)WdS(Ns\u20acR4i{g������F@iy @iRtxxxxy@ @(RRR�RR�RRR�R�t$pymarshal_read_last_object_from_fileRR	(RR�R�RrR0R�R�((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyttest_read_last_object_from_filezscCs�ddddd
f}x�ttjd�D]�}tj||�}ttjd��}|j|d	�WdQXtj	tj�\}}tj
tj�|j||�|j|t|��q)WdS(Ns\u20acR4i{g������F@iy @iRR�y@ @(
RRR�RR�RRR�R�tpymarshal_read_object_from_fileRR	Rn(RR�R�RrR0R�R�((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyttest_read_object_from_file�s(R+R,R�R�R�R�R�R�(((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyR�Us						
c
Cs)tjtttttttt	t
�	dS(N(Rtrun_unittestRR-R2R>RBR;R\R�R�(((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyt	test_main�s	t__main__I�(ttestRRRtunittestRR�tImportErrorR�tTestCaseRR-R2R;R>RBR\R�t
maxunicodeR�tmaxsizeR�tskipIfR�tcpython_onlyt
skipUnlessR�R�R+(((s8/usr/local/python-2.7/lib/python2.7/test/test_marshal.pyt<module>s4

10#0X+9	
© 2025 GrazzMean