%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/lib/python2.7/test/
Upload File :
Create Path :
Current File : //usr/local/lib/python2.7/test/test_array.pyo

ó
Nęáac@sŠdZddlZddlZddlmZddlmZddlZddlZddl	m
Z
mZmZddl
Z
dejfd„ƒYZdejfd	„ƒYZgZd
ZejrŇed7Zndejfd
„ƒYZejeƒdejfd„ƒYZdefd„ƒYZdefd„ƒYZejeƒejrydefd„ƒYZejeƒndefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZejeƒdefd„ƒYZejeƒd efd!„ƒYZejeƒd"efd#„ƒYZ eje ƒd$efd%„ƒYZ!eje!ƒd&efd'„ƒYZ"eje"ƒd(efd)„ƒYZ#eje#ƒd*efd+„ƒYZ$eje$ƒej%d,ejfd-„ƒYƒZ&eje&ƒd.efd/„ƒYZ'd0e'fd1„ƒYZ(eje(ƒd2e'fd3„ƒYZ)eje)ƒe*d4„Z+e,d5kr†e+d6e-ƒndS(7s(Test the arraymodule.
   Roger E. Masse
i˙˙˙˙N(ttest_support(tproxy(tloadstdumpstHIGHEST_PROTOCOLt
ArraySubclasscBseZRS((t__name__t
__module__(((s+/usr/local/lib/python2.7/test/test_array.pyR
stArraySubclassWithKwargscBseZdd„ZRS(cCstjj||ƒdS(N(tarrayt__init__(tselfttypecodetnewarg((s+/usr/local/lib/python2.7/test/test_array.pyR
sN(RRtNoneR
(((s+/usr/local/lib/python2.7/test/test_array.pyRstcbBhHiIlLfdtutMiscTestcBs,eZd„Zejd„ƒZd„ZRS(cCsž|jttjƒ|jttjddƒ|jttjdƒ|jttjdƒ|jttjdƒ|jttjdƒ|jttjdƒdS(Ntspami*txxtitxs€(tassertRaisest	TypeErrorR	t
ValueError(R((s+/usr/local/lib/python2.7/test/test_array.pyttest_bad_constructorscCs\|jttjdƒ|jttjdƒ|jttjdƒ|jttjdƒdS(Nuxxuuxu€(RRR	R(R((s+/usr/local/lib/python2.7/test/test_array.pyttest_unicode_constructor$scCs„tjdƒ}||(|jt|ƒdƒ|jt||ƒdƒ|jt|dƒdƒ||7}|jt|ƒdƒdS(NtBii(R	tassertEqualtlen(Rta((s+/usr/local/lib/python2.7/test/test_array.pyt
test_empty+s
(RRRRtrequires_unicodeRR(((s+/usr/local/lib/python2.7/test/test_array.pyRs		tBaseTestcBseZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
d„Zd
„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z!d „Z"d!„Z#d"„Z$d#„Z%d$„Z&d%„Z'd&„Z(d'„Z)e*j+e,e-d(ƒd)ƒd*„ƒZ.d+„Z/RS(,cCs|j||ƒdS(N(R(Rtentry1tentry2((s+/usr/local/lib/python2.7/test/test_array.pytassertEntryEqual@scCs"ttj|jƒdttƒS(Ni(t	typecodestindexRR(R((s+/usr/local/lib/python2.7/test/test_array.pytbadtypecodeCscCs^tj|jƒ}|j|j|jƒ|j|j|jƒ|jttj|jdƒdS(N(	R	RRtassertGreaterEqualtitemsizetminitemsizeRRR(RR((s+/usr/local/lib/python2.7/test/test_array.pyttest_constructorGscCswtj|jƒ}|j|jdƒ|jt|ƒdƒtj|j|jƒ}|jt|ƒt|jƒƒdS(Nii(R	RtappendtexampleRR(RR((s+/usr/local/lib/python2.7/test/test_array.pyttest_lenMs
cCsŹtj|j|jƒ}|jt|jdƒ|jƒ}|j|tƒ|jt	|ƒdƒ|j|dt
tfƒ|j|dt
ƒ|j|dt	|ƒƒdS(Ni*iii(R	RR-RRtbuffer_infotassertIsInstancettupleRRtinttlong(RRtbi((s+/usr/local/lib/python2.7/test/test_array.pyttest_buffer_infoUscCs˛tj|j|jƒ}|jt|jdƒ|jdkrŽtj|j|jƒ}|jƒ|jdkr|j||ƒn|j||ƒ|jƒ|j||ƒndS(Ni*iiii(iiii(	R	RR-RRtbyteswapR)RtassertNotEqual(RRtb((s+/usr/local/lib/python2.7/test/test_array.pyt
test_byteswap_s

cCscddl}tj|j|jƒ}|j|ƒ}|jt|ƒt|ƒƒ|j||ƒdS(Ni˙˙˙˙(tcopyR	RR-R7tidR(RR:RR8((s+/usr/local/lib/python2.7/test/test_array.pyt	test_copyls
cCscddl}tj|j|jƒ}|j|ƒ}|jt|ƒt|ƒƒ|j||ƒdS(Ni˙˙˙˙(R:R	RR-tdeepcopyR7R;R(RR:RR8((s+/usr/local/lib/python2.7/test/test_array.pyt
test_deepcopyss
cCs	xttdƒD]đ}tj|j|jƒ}tt||ƒƒ}|jt|ƒt|ƒƒ|j	||ƒt
|j|jƒ}d|_tt||ƒƒ}|jt|ƒt|ƒƒ|j	||ƒ|j	|j|jƒ|j	t|ƒt|ƒƒqWdS(Nii
(
trangeRR	RR-RRR7R;RRRttype(RtprotocolRR8((s+/usr/local/lib/python2.7/test/test_array.pyttest_picklezs	cCsýxöttdƒD]ä}tj|jƒ}tt||ƒƒ}|jt|ƒt|ƒƒ|j||ƒt	|jƒ}d|_
tt||ƒƒ}|jt|ƒt|ƒƒ|j||ƒ|j|j
|j
ƒ|jt|ƒt|ƒƒqWdS(Nii
(R?RR	RRRR7R;RRRR@(RRARR8((s+/usr/local/lib/python2.7/test/test_array.pyttest_pickle_for_empty_array‰s	cCsÓtj|j|jƒ}|jd|jdƒ|jt|ƒdt|jƒƒ|j|d|dƒ|jt|jƒ|jt|jdƒ|jt|jddƒtj|j|jƒ}|jd|jdƒ|j|tj|j|jd |jd |jdƒƒtj|j|jƒ}|jd|jdƒ|j|tj|j|jd |jƒƒtj|j|jƒ}|jd|jdƒ|j|tj|j|j|jd ƒƒdS(Niii˙˙˙˙iü˙˙ič(	R	RR-tinsertRRRRR(RR((s+/usr/local/lib/python2.7/test/test_array.pyttest_insert˜s0#'$cCsŹtj|jd|jƒ}|jt|jƒ|jt|jtjƒƒtj	tj
ƒttj
dƒ}z|j|ƒ|jƒtj|jƒ}ttj
dƒ}|jt|j
ƒ|jt|j
tjƒt|jƒƒ|j
|t|jƒƒ|j|tj|j|jƒƒ|j||ƒ|j
|t|jƒƒ|j||ƒ|jt|j
|dƒ|jƒWd|js—|jƒntj	tj
ƒXdS(Nitwbtrbi(R	RR-RRttofilet	cStringIOtStringIORtunlinktTESTFNtopentclosetfromfileRRR7tEOFErrortclosed(RRtfR8((s+/usr/local/lib/python2.7/test/test_array.pyttest_tofromfilešs2

"	
cCsltj|jƒ}ttjdƒ}z&|jt|j|t|j	ƒƒWd|j
ƒtjtjƒXdS(NRF(R	RRMRRLRtIOErrorRORR-RNRK(RRRR((s+/usr/local/lib/python2.7/test/test_array.pyttest_fromfile_ioerrorÖs&
cCstj|jd|jƒ}ttjdƒ}z˝|j|ƒ|jƒtj|jƒ}ttjdƒ}|j|t	|jƒƒ|j
|tj|j|jƒƒ|j||ƒ|j|t	|jƒƒ|j
||ƒ|jƒWd|js|jƒntj
tjƒXdS(NiRFRG(R	RR-RMRRLtwriteRNRORRR7RQRK(RRRRR8((s+/usr/local/lib/python2.7/test/test_array.pyttest_filewriteás 

"	
cCs­tj|jd|jƒ}tj|jƒ}|jt|jdƒ|jt|jƒ|jt|jdƒ|jt|jdgƒ|j|jƒƒ|j||ƒdS(Nii*(	R	RR-RRttolisttfromlistRR(RRR8((s+/usr/local/lib/python2.7/test/test_array.pyttest_tofromlistôscCsŇtj|jd|jƒ}tj|jƒ}|jt|jdƒ|jt|jƒ|jt|jdƒ|jt|j|ƒ|j|jƒƒ|j||ƒ|j	dkrÎ|jt|jdƒndS(Nii*iR(
R	RR-RRttostringt
fromstringRRR)(RRR8((s+/usr/local/lib/python2.7/test/test_array.pyttest_tofromstringţscCsxtj|jd|jƒ}|j|tt|ƒitjd6ƒƒtj|jƒ}|jt|ƒd|jƒdS(NiR	sarray('%s')(R	RR-Rtevaltrepr(RR((s+/usr/local/lib/python2.7/test/test_array.pyt	test_repr
s)cCs*tj|jd|jƒ}t|ƒdS(Ni(R	RR-tstr(RR((s+/usr/local/lib/python2.7/test/test_array.pyttest_strscCs tj|j|jƒ}|j|dktƒ|j|dktƒ|j||ktƒ|j||ktƒ|j||ktƒ|j||ktƒ|j||ktƒ|j||ktƒtj|j|jƒ}tj|j|jƒ}|j|d|ktƒ|j|d|ktƒ|j|d|ktƒ|j|d|ktƒ|j|d|ktƒ|j|d|ktƒ|j||ktƒ|j||ktƒ|j||ktƒ|j||ktƒ|j||ktƒ|j||ktƒ|j||ktƒ|j||ktƒ|j||ktƒ|j||ktƒ|j||ktƒ|j||ktƒdS(Ni*i(R	RR-tassertIstFalsetTruetsmallerexamplet
biggerexample(RRtaltab((s+/usr/local/lib/python2.7/test/test_array.pyttest_cmps:c	Csśtj|j|jƒtj|j|jddd…ƒ}|j|tj|j|j|jddd…ƒƒtj|jƒƒ}|jt|j|ƒ|jt|jdƒdS(Ni˙˙˙˙tbad(R	RR-RR'RRt__add__(RRR8((s+/usr/local/lib/python2.7/test/test_array.pyttest_add9s&-cCs%tj|j|jddd…ƒ}|}|tj|jd|jƒ7}|j||ƒ|j|tj|j|jddd…d|jƒƒtj|j|jƒ}||7}|j|tj|j|j|jƒƒtj|jƒƒ}|jt|j|ƒ|jt|j	dƒdS(Ni˙˙˙˙iRk(
R	RR-RcRR'RRRlt__iadd__(RRR8((s+/usr/local/lib/python2.7/test/test_array.pyt	test_iaddFs% 1
 cCsdtj|j|jƒ}|j|tj|jd|jƒƒtj|j|jƒd}|j|tj|j|jdƒƒdtj|j|jƒ}|j|tj|jƒƒdtj|j|jƒ}|j|tj|jƒƒ|jt|jdƒdS(Niii˙˙˙˙Rk(R	RR-RRRt__mul__(RR((s+/usr/local/lib/python2.7/test/test_array.pyttest_mul[s"cCsXtj|j|jƒ}|}|d9}|j||ƒ|j|tj|jd|jƒƒ|d9}|j||ƒ|j|tj|jƒƒ|d9}|j||ƒ|j|tj|jƒƒ|d9}|j||ƒ|j|tj|jƒƒtj|j|jƒ}|d9}|j|tj|jƒƒ|jt|jdƒdS(Niiiči˙˙˙˙Rk(R	RR-RcRRRt__imul__(RRR8((s+/usr/local/lib/python2.7/test/test_array.pyt	test_imulvs(




cCs+tj|j|jƒ}|j|d|jdƒ|j|d|jdƒ|j|d|jdƒ|j|d|jdƒ|j|t|jƒd|jdƒ|j|t|jƒ|jdƒ|jt|jƒ|jt|jt|jƒƒ|jt|jt|jƒdƒdS(Nili˙˙˙˙l˙˙˙˙i(	R	RR-R$RRRt__getitem__t
IndexError(RR((s+/usr/local/lib/python2.7/test/test_array.pyttest_getitem“s(%cCs(tj|j|jƒ}|d|d<|j|d|dƒtj|j|jƒ}|d|d<|j|d|dƒtj|j|jƒ}|d|d<|j|d|dƒtj|j|jƒ}|d|d<|j|d|dƒtj|j|jƒ}|d|t|jƒd<|j|d|dƒtj|j|jƒ}|d|t|jƒ<|j|d|dƒ|jt|jƒ|jt|jdƒ|jt|jddƒ|jt	|jt|jƒ|jdƒ|jt	|jt|jƒd|jdƒdS(Ni˙˙˙˙ill˙˙˙˙i(
R	RR-R$RRRt__setitem__RRu(RR((s+/usr/local/lib/python2.7/test/test_array.pyttest_setitemŸs:cCs›tj|j|jƒ}|d=|j|tj|j|jdƒƒtj|j|jƒ}|d=|j|tj|j|jd ƒƒtj|j|jƒ}|t|jƒd=|j|tj|j|jd ƒƒtj|j|jƒ}|t|jƒ=|j|tj|j|jdƒƒ|jt|jƒ|jt|jdƒ|jt	|jt|jƒƒ|jt	|jt|jƒdƒdS(Niii˙˙˙˙(
R	RR-RRRRt__delitem__RRu(RR((s+/usr/local/lib/python2.7/test/test_array.pyttest_delitemĆs0cCs˝tj|j|jƒ}|j||ƒ|j|dtj|j|jdƒƒ|j|d tj|j|jd ƒƒ|j|d tj|j|jd ƒƒ|j|dtj|j|jdƒƒ|j|dd!tj|jƒƒ|j|dd!tj|jƒƒ|j|dtj|jƒƒ|j|d|ƒ|j|d |ƒ|j|d tj|jƒƒ|j|dd!|ƒ|j|dd!tj|jƒƒdS(Nii˙˙˙˙iičiü˙˙iĐ(R	RR-R(RR((s+/usr/local/lib/python2.7/test/test_array.pyt
test_getslicečs@


c
Cstj|j|jƒ}d
}xj|D]b}xY|D]Q}xH|dD]<}|jt||||…ƒt|ƒ|||…ƒqCWq2Wq%WdS(Niiiiidi˙˙˙˙iţ˙˙˙iá˙˙˙iœ˙˙˙(
iNiiiidi˙˙˙˙iţ˙˙˙iá˙˙˙iœ˙˙˙(R	RR-RRtlist(RRtindiceststarttstoptstep((s+/usr/local/lib/python2.7/test/test_array.pyttest_extended_getslices

cCsJtj|j|jƒ}||d*|j|tj|j|j|jdƒƒtj|j|jƒ}||d*|j|tj|j|j|jdƒƒtj|j|jƒ}||d)|j|tj|j|jd |jƒƒtj|j|jƒ}||d)|j|tj|j|jd |jƒƒtj|j|jƒ}||dd+|j|tj|j|jd |j|jdƒƒtj|j|jƒ}||d)|j|tj|jd|jƒƒtj|j|jƒ}||d)|j|tj|j|jƒƒtj|j|jƒ}||d*|j|tj|j|jƒƒtj|j|jƒ}||d*|j|tj|jd|jƒƒtj|j|jƒ}||dd+|j|tj|j|jd |j|jdƒƒtj|j|jƒ}||dd+|j|tj|jd|jƒƒtj|j|jƒ}|jt|jdddƒ|jt|jt	ddƒdƒ|jt|jt	ddƒdƒtj|j
ƒƒ}|jt|jdd|ƒ|jt|jt	ddƒ|ƒ|jt|jt	ddƒ|ƒdS(Nii˙˙˙˙ičiiü˙˙iiĐ(R	RR-RRRt__setslice__RRwtsliceR'(RRR8((s+/usr/local/lib/python2.7/test/test_array.pyt
test_setslice&s‚
$
$
$
$
#




/
"""c
Csd
}x|D]}x÷|D]ď}xć|dD]Ú}tj|j|jƒ}t|ƒ}||||…}|jƒ|||||…<tj|j|ƒ||||…<|j|tj|j|ƒƒ||||…=||||…=|j|tj|j|ƒƒq+WqWq
WdS(Niiiiidi˙˙˙˙iţ˙˙˙iá˙˙˙iœ˙˙˙(
iNiiiidi˙˙˙˙iţ˙˙˙iá˙˙˙iœ˙˙˙(RR	RR-R|treverseR(RR}R~RR€RtLtdata((s+/usr/local/lib/python2.7/test/test_array.pyttest_extended_set_del_slices


"cCs›d|j}tj|j|ƒ}|jt|jƒx0|D](}|j|j|ƒ|j|ƒƒq<W|jt|jdƒ|jt|j|j	ƒdS(Ni(
R-R	RRRR&RRRtoutside(RR-RR((s+/usr/local/lib/python2.7/test/test_array.pyt
test_index•s

&cCsĄd|j}tj|j|ƒ}|jt|jƒx0|D](}|j|j|ƒ|j|ƒƒq<W|j|j|jƒdƒ|j|jdƒdƒdS(Nii(	R-R	RRRtcountRR‰R(RR-RR((s+/usr/local/lib/python2.7/test/test_array.pyt
test_countžs

&cCsŇx„|jD]y}d|j}tj|j|ƒ}|j|ƒ}|| ||d}|j|ƒ|j|tj|j|ƒƒq
Wtj|j|jƒ}|jt|j|jƒ|jt|jdƒdS(Nii(
R-R	RR&tremoveRRRR‰R(RRR-Rtpostexample2((s+/usr/local/lib/python2.7/test/test_array.pyttest_remove§s

#cCsÇtj|jƒ}|jt|jƒtj|jd|jƒ}|jt|jddƒ|jt|jdƒ|jt|jt|ƒƒ|jt|jt|ƒdƒ|j	|jdƒ|jdƒ|j
|tj|j|jd|jƒƒ|j	|jdƒ|jdƒ|j
|tj|j|jdd!|jd|jƒƒ|j	|jdƒ|jdƒ|j	|jƒ|jdƒ|j
|tj|j|jd|jd ƒƒdS(Nii*iiii˙˙˙˙(R	RRRutpopR-RRRR$R(RR((s+/usr/local/lib/python2.7/test/test_array.pyttest_popľs(! $ 2 cCsktj|j|jƒ}|jt|jdƒ|jƒ|j|tj|j|jddd…ƒƒdS(Ni*i˙˙˙˙(R	RR-RRR…R(RR((s+/usr/local/lib/python2.7/test/test_array.pyttest_reverseĐs
c	Csutj|j|jƒ}|jt|jƒ|jtj|j|jddd…ƒƒ|j|tj|j|j|jddd…ƒƒtj|j|jƒ}|j|ƒ|j|tj|j|j|jƒƒtj|jƒƒ}|jt|j|ƒtj|j|jƒ}|j|jddd…ƒ|j|tj|j|j|jddd…ƒƒdS(Ni˙˙˙˙(R	RR-RRtextendRR'(RRR8((s+/usr/local/lib/python2.7/test/test_array.pyttest_extendŮs$,-
 cCsŔtj|jt|jƒƒ}tj|j|jƒ}|j||ƒ|jttj|jdƒddd„ƒY}|jttj|j|ƒƒd„}|jttj|j|ƒƒdS(Ni
tAcBseZd„ZRS(cSs
t‚dS(N(tUnicodeError(R((s+/usr/local/lib/python2.7/test/test_array.pyt__iter__ýs(RRR˜(((s+/usr/local/lib/python2.7/test/test_array.pyR–üscsst‚dVdS(N(R—R(((s+/usr/local/lib/python2.7/test/test_array.pyRs((R	RtiterR-RRRR—(RRR8R–R((s+/usr/local/lib/python2.7/test/test_array.pyt'test_constructor_with_iterable_argumentós	cCsmyddl}Wntk
r0|jdƒnXtj|jƒ}t|ƒg}|j|ƒ|jƒdS(Ni˙˙˙˙sgc module not available(tgctImportErrortskipTestR	RR™R,tcollect(RR›Rtl((s+/usr/local/lib/python2.7/test/test_array.pyttest_coveritertraverses

cCsYtj|j|jƒ}tjƒt|ƒ}WdQX|j|d|jƒdƒdS(Ni(R	RR-Rtcheck_py3k_warningstbufferRR[(RRR8((s+/usr/local/lib/python2.7/test/test_array.pyttest_buffers
cCs]tj|j|jƒ}t|ƒ}|j|jƒ|jƒƒd}|jtt	|ƒdS(N(
R	RR-RRR[RRtReferenceErrorR(Rtstp((s+/usr/local/lib/python2.7/test/test_array.pyttest_weakrefs
tgetrefcountstest needs sys.getrefcount()cCsŠx,tdƒD]}tjdtdƒƒ}q
Wtjdƒ}x,tdƒD]}tjdtdƒƒ}qKW|j|tjdƒƒdS(Ni
Ri@(R?R	tsysR¨R(RtiR8trc((s+/usr/local/lib/python2.7/test/test_array.pyttest_bug_782369scCs:tjƒ(tjddtƒtdddƒWdQXdS(NtignoreRR8R
i(twarningstcatch_warningstfilterwarningstDeprecationWarningR(R((s+/usr/local/lib/python2.7/test/test_array.pyttest_subclass_with_kwargs(s
(0RRR$R'R+R.R5R9R<R>RBRCRERSRURWRZR]R`RbRjRmRoRqRsRvRxRzR{RR„RˆRŠRŒRR’R“R•RšR RŁR§tunittestt
skipUnlessthasattrRŠRŹR˛(((s+/usr/local/lib/python2.7/test/test_array.pyR!7sV						
	
					!				
				$	
					'	"	2		[												
			t
StringTestcBseZd„ZRS(cCsOtt|ƒjƒtj|j|jƒ}|jt|jd|jd ƒdS(Nii(	tsuperRśRxR	RR-RRRw(RR((s+/usr/local/lib/python2.7/test/test_array.pyRx1s(RRRx(((s+/usr/local/lib/python2.7/test/test_array.pyRś/st
CharacterTestcBsGeZdZdZdZdZdZdZd„Ze	j
d„ƒZRS(tcsazAZţsazAYţsazAZ˙t3icCs”dtjfd„ƒY}|dƒ}|jƒ|j|jƒdƒ|j|jdƒd|_|j|jdƒ|j|jjƒdgƒdS(NtEditableStringcBs/eZd„Zdd„Zd„Zd„ZRS(c_stjj|d|ƒS(NRš(R	t__new__(tclsRĽtargstkwargs((s+/usr/local/lib/python2.7/test/test_array.pyRź@stbluecSs
||_dS(N(tcolor(RRĽRÁ((s+/usr/local/lib/python2.7/test/test_array.pyR
CscSs#tjd|jƒjƒƒ|(dS(NRš(R	R[tstrip(R((s+/usr/local/lib/python2.7/test/test_array.pyRÂFscSsd|jƒS(NsEditableString(%r)(R[(R((s+/usr/local/lib/python2.7/test/test_array.pyt__repr__Is(RRRźR
RÂRĂ(((s+/usr/local/lib/python2.7/test/test_array.pyRť?s		s	test
ttestRŔtredRÁ(R	RÂRR[RÁt__dict__tkeys(RRťRĽ((s+/usr/local/lib/python2.7/test/test_array.pyttest_subbclassing>s

	cCsKtj|j|jƒ}|jt|jtdƒƒ|jt|jƒdS(NR(R	RR-RRtfromunicodetunicodet	tounicode(RR((s+/usr/local/lib/python2.7/test/test_array.pyttest_nounicodeUs(RRRR-RfRgR‰R*RČRR RĚ(((s+/usr/local/lib/python2.7/test/test_array.pyR¸6s	tUnicodeTestcBsVeZdZeddƒZeddƒZeddƒZedƒZdZd„Z	RS(Rs\x01\u263a\x00\ufeffsunicode-escapes\x01\u263a\x00\ufefes\x01\u263a\x01\ufeffRşicCs|jttjdtddƒƒtjdtddƒƒ}|jtddƒƒ|jtddƒƒ|jtddƒƒ|jtd	dƒƒ|jƒ}|j|td
dƒƒtddƒ}tjd|ƒ}|jt|ƒdƒ|jt|jƒdS(
NR8tfootasciiRs\xa0\xc2\u1234sunicode-escapet Rs\x11abc\xff\u1234s \xa0\xc2\u1234 \x11abc\xff\u1234s&\x00="\'a\\b\x80\xff\u0000\u0001\u1234s1array('u', u'\x00="\'a\\b\x80\xff\x00\x01\u1234')(RRR	RĘRÉRËRR_(RRRĽ((s+/usr/local/lib/python2.7/test/test_array.pyttest_unicodefs "	(
RRRRĘR-RfRgR‰R*RŃ(((s+/usr/local/lib/python2.7/test/test_array.pyRÍ^st
NumberTestcBs>eZd„Zd„Zd„Zd„Zd„Zd„ZRS(c	Cstj|jtdƒƒ}|j|ddd…|ƒ|j|ddd…tj|jdddgƒƒ|j|ddd…tj|jddgƒƒ|j|ddd…tj|jdddddgƒƒ|j|ddd…tj|jdddgƒƒ|j|ddd…tj|jddgƒƒ|j|d	d
d…|ƒ|j|d
d	d…|ddd…ƒ|j|ddd
…tj|jdddgƒƒ|j|ddd…tj|jgƒƒ|j|ddd…tj|jgƒƒdS(Niiiiiii˙˙˙˙iţ˙˙˙iœ˙˙˙idl˙˙˙˙dldličiĐiü˙˙i0ř˙˙(R	RR?RR(RR((s+/usr/local/lib/python2.7/test/test_array.pyt
test_extslices52;52*5,c
Cstj|jtdƒƒ}|ddd…=|j|tj|jddgƒƒtj|jtdƒƒ}|ddd…=|j|tj|jdddgƒƒtj|jtdƒƒ}|ddd…=|j|tj|jddddgƒƒtj|jtdƒƒ}|ddd	…=|j|tj|jdddddd
ddd
g	ƒƒtj|jtdƒƒ}|d
dd…=dS(Niiiiiiiţ˙˙˙i
ičiiii	iMl(R	RR?R(RR((s+/usr/local/lib/python2.7/test/test_array.pyt
test_delslices%(+:cCsÖtj|jtdƒƒ}tj|jdgdƒ|ddd…<|j|tj|jddddddddddg
ƒƒtj|jtdƒƒ}tj|jdgdƒ|ddd	…<|j|tj|jd
dddddddd
dg
ƒƒtj|jtdƒƒ}||ddd…<|j|tj|jdddd
gƒƒtj|jtdƒƒ}|}|}tj|jtdƒƒ}||dd+||tddƒ<||ddd…<dS(Ni
i*iiiiii	iü˙˙˙iiiii˙˙˙˙(R	RR?RRƒR(RRR8Rštins((s+/usr/local/lib/python2.7/test/test_array.pyttest_assignment s )=)=+
cCs‡tj|jtdƒƒ}|jt|ƒtdƒƒtj|jdgƒ}|j|d|ktƒ|j|d|ktƒdS(Ni
ii˙˙˙˙i(R	RR?RR|Re(RRR8((s+/usr/local/lib/python2.7/test/test_array.pyttest_iterationcontains˛s
cCsČtj|j|gƒ}||d<|jttj|j|dgƒ|jt|jd|dƒtj|j|gƒ}||d<|jttj|j|dgƒ|jt|jd|dƒdS(Nii(R	RRt
OverflowErrorRw(RtlowertupperR((s+/usr/local/lib/python2.7/test/test_array.pytcheck_overflowšs
#
#cCst|j}dtjfd„ƒY}||jddddgdƒ}|j|ddƒ|jtt|d	d
ƒdS(NtExaggeratingArraycBs,eZdgZd„Zd„Zd„ZRS(toffsetcSstjj|||ƒS(N(R	Rź(R˝RR‡RÝ((s+/usr/local/lib/python2.7/test/test_array.pyRźÎscSs
||_dS(N(RÝ(RRR‡RÝ((s+/usr/local/lib/python2.7/test/test_array.pyR
ŃscSstjj||ƒ|jS(N(R	RtRÝ(RRŞ((s+/usr/local/lib/python2.7/test/test_array.pyRtÔs(RRt	__slots__RźR
Rt(((s+/usr/local/lib/python2.7/test/test_array.pyRÜËs			iiiiiiRÁRŔ(RR	R$RtAttributeErrortsetattr(RRRÜR((s+/usr/local/lib/python2.7/test/test_array.pyttest_subclassingÉs
	!(RRRÓRÔRÖR×RŰRá(((s+/usr/local/lib/python2.7/test/test_array.pyRŇs					tSignedNumberTestcBsVeZdddddgZdddddgZdddddgZdZd„ZRS(	i˙˙˙˙iii*ii~i+icCsntj|jƒ}dttd|jddƒƒ}ttd|jddƒƒd}|j||ƒdS(Ni˙˙˙˙iiil(R	RR3tpowR)RŰ(RRRŮRÚ((s+/usr/local/lib/python2.7/test/test_array.pyt
test_overflowâs$$(RRR-RfRgR‰Rä(((s+/usr/local/lib/python2.7/test/test_array.pyRâÜs
tUnsignedNumberTestcBsƒeZddddddgZddddddgZddddddgZdZd	„Zejd
„ƒZ	ejd„ƒZ
RS(iiiii*i˙iţi+iŞcCsLtj|jƒ}d}ttd|jdƒƒd}|j||ƒdS(Niiil(R	RR3RăR)RŰ(RRRŮRÚ((s+/usr/local/lib/python2.7/test/test_array.pyRäîs cCsYtj|j|jƒ}tjdƒ}|jƒd|j}tj||||ƒdS(Nt4Pi(R	RR-RtcalcvobjsizeR/R)tcheck_sizeof(RRtbasesizetbuffer_size((s+/usr/local/lib/python2.7/test/test_array.pyttest_sizeof_with_bufferôscCs8tj|jƒ}tjdƒ}tj|||ƒdS(NRć(R	RRRçRč(RRRé((s+/usr/local/lib/python2.7/test/test_array.pyttest_sizeof_without_bufferűs(RRR-RfRgR‰RäRtcpython_onlyRëRě(((s+/usr/local/lib/python2.7/test/test_array.pyRĺčs	tByteTestcBseZdZdZRS(R8i(RRRR*(((s+/usr/local/lib/python2.7/test/test_array.pyRîstUnsignedByteTestcBseZdZdZRS(Ri(RRRR*(((s+/usr/local/lib/python2.7/test/test_array.pyRďst	ShortTestcBseZdZdZRS(thi(RRRR*(((s+/usr/local/lib/python2.7/test/test_array.pyRđstUnsignedShortTestcBseZdZdZRS(tHi(RRRR*(((s+/usr/local/lib/python2.7/test/test_array.pyRňstIntTestcBseZdZdZRS(RŞi(RRRR*(((s+/usr/local/lib/python2.7/test/test_array.pyRôstUnsignedIntTestcBseZdZdZRS(tIi(RRRR*(((s+/usr/local/lib/python2.7/test/test_array.pyRőstLongTestcBseZdZdZRS(RŸi(RRRR*(((s+/usr/local/lib/python2.7/test/test_array.pyR÷ stUnsignedLongTestcBseZdZdZRS(R†i(RRRR*(((s+/usr/local/lib/python2.7/test/test_array.pyRř%stUnicodeTypecodeTestcBseZd„ZRS(cCsVxOtD]G}tjt|ƒƒ}|j|j|ƒ|jt|jƒtƒqWdS(N(R%R	RĘRRRcR@Ra(RRR((s+/usr/local/lib/python2.7/test/test_array.pyttest_unicode_typecode-s
(RRRú(((s+/usr/local/lib/python2.7/test/test_array.pyRů+stFPTestcBs_eZdddddgZdddddgZdddddgZdZd„Zd	„ZRS(
gEŔii*gjř@g _ Âg _ Âg _ BicCs|j||ƒdS(N(tassertAlmostEqual(RR"R#((s+/usr/local/lib/python2.7/test/test_array.pyR$;scCsžtj|j|jƒ}|jt|jdƒ|jdkrştj|j|jƒ}|jƒ|jdkr|j||ƒn|j|j	ƒ|j	ƒƒ|jƒ|j||ƒndS(Ni*iiii(iiii(
R	RR-RRR6R)RR7R[(RRR8((s+/usr/local/lib/python2.7/test/test_array.pyR9>s

(RRR-RfRgR‰R$R9(((s+/usr/local/lib/python2.7/test/test_array.pyRű5s	t	FloatTestcBseZdZdZRS(RRi(RRRR*(((s+/usr/local/lib/python2.7/test/test_array.pyRýNst
DoubleTestcBseZdZdZd„ZRS(tdicCs´ddlm}tjddgdƒ}y||dd9}Wntk
rRnX|jdƒtjddddgƒ}y||d	dWntk
r˘nX|jdƒdS(
Ni˙˙˙˙(tmaxsizeR˙iis6Array of size > maxsize created - MemoryError expectedgËII‹
ż@gńÔČSű!	@i(RŠRR	tMemoryErrortfail(RRRR8((s+/usr/local/lib/python2.7/test/test_array.pyttest_alloc_overflowWs


(RRRR*R(((s+/usr/local/lib/python2.7/test/test_array.pyRţSscCs—ddl}tjtŒ|r“t|dƒr“ddl}dgd}xAtt|ƒƒD]-}tjtŒ|j	ƒ|j
ƒ||<qZW|GHndS(Ni˙˙˙˙tgettotalrefcounti(RŠRtrun_unittestttestsRľR›RtxrangeRRžR(tverboseRŠR›tcountsRŞ((s+/usr/local/lib/python2.7/test/test_array.pyt	test_mainjs



t__main__R(.t__doc__RłRŽRÄRtweakrefRR	RItcPickleRRRRŠRRRR%thave_unicodetTestCaseRR,R!RśR¸RÍRŇRâRĺRîRďRđRňRôRőR÷RřR RůRűRýRţRR
RRe(((s+/usr/local/lib/python2.7/test/test_array.pyt<module>sl	

˙˙ú%
	]







	




Zerion Mini Shell 1.0