%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_capi.pyc

ó
Nêáac@€sqddlmZddlZddlZddlZddlZddlZddlmZ	yddl
Z
ddlZWnek
r—dZ
dZnXe	jdƒZdejfd„ƒYZejedƒdejfd	„ƒYƒZd
ejfd„ƒYZejeoe
dƒdejfd
„ƒYƒZdejfd„ƒYZd„ZedkrmeƒndS(iÿÿÿÿ(twith_statementN(ttest_supportt	_testcapitCAPITestcB€seZd„ZRS(cC€stjƒdS(N(Rttest_buildvalue_N(tself((s*/usr/local/lib/python2.7/test/test_capi.pyRs(t__name__t
__module__R(((s*/usr/local/lib/python2.7/test/test_capi.pyRss!Threading required for this test.tTestPendingCallscB€s8eZd„Zdd„Zd„Zd„Zd„ZRS(c€sa‡fd†}xKt|ƒD]=}tjtjƒdƒxtrXtj|ƒr<Pq<q<WqWdS(Nc€sˆjdƒdS(N(tappendtNone((tl(s*/usr/local/lib/python2.7/test/test_capi.pytcallbacksg{®Gáz”?(trangettimetsleeptrandomtTrueRt_pending_threadfunc(RRtnRti((Rs*/usr/local/lib/python2.7/test/test_capi.pytpendingcalls_submits	cC€s×d}x¦t|ƒ|kr®tr>tjr>dt|ƒfGnxtdƒD]}||}qKW|r{|jjƒr{q	n|d7}|j|dkd|t|ƒfƒq	WtrÓtjrÓdt|ƒfGHndS(Nis(%i)ièii's(timeout waiting for %i callbacks, got %i(tlentFalsetsupporttverbosetxrangeteventtis_sett
assertTrue(RRRtcontexttcountRta((s*/usr/local/lib/python2.7/test/test_capi.pytpendingcalls_wait,s
cC€sÞd}g}dtfd„ƒY}|ƒ}g|_d|_||j|_d|_tjƒ|_tjƒ|_	gt
|jƒD]$}tjd|jd|fƒ^q„}t
j|ƒ|j|j||ƒWdQXdS(Ni tfoocB€seZRS((RR(((s*/usr/local/lib/python2.7/test/test_capi.pyR"Csiittargettargs(tobjectRRtnThreadst	nFinishedt	threadingtLocktlocktEventRR
tThreadtpendingcalls_threadRt
start_threadsR!(RRtthreadsR"RR((s*/usr/local/lib/python2.7/test/test_capi.pyttest_pendingcalls_threaded?s				7c
C€s„z|j|j|jƒWd|j8|jd7_|j}trZtjrZdG|GHnWdQX||jkr|j	j
ƒnXdS(Nisfinished threads: (RRRR*R'RRRR&Rtset(RRR'((s*/usr/local/lib/python2.7/test/test_capi.pyR-Rs
	cC€s0g}d}|j||ƒ|j||ƒdS(Ni@(RR!(RRR((s*/usr/local/lib/python2.7/test/test_capi.pyttest_pendingcalls_non_threaded^sN(RRRR
R!R0R-R2(((s*/usr/local/lib/python2.7/test/test_capi.pyRs
			tTestGetIndicescB€seZd„ZRS(cC€sD|jtjtdddƒdƒdƒ|jtjtdddƒdƒdƒ|jtjtdddƒdƒdƒ|jtjtdd	dƒdƒdƒ|jtjtddd
ƒdƒd
ƒ|jtjtddd
ƒdƒdƒ|jtjtddd
ƒdƒdƒ|jtjtdd	d
ƒdƒdƒdS(Nl
iiidii
g333333$@lgš™™™™4@l(ii
ii(ii
ii(ii
ii(ii
ii(tassertEqualRtget_indicestsliceR
(R((s*/usr/local/lib/python2.7/test/test_capi.pyttest_get_indicesks((((((((RRR7(((s*/usr/local/lib/python2.7/test/test_capi.pyR3istTestThreadStatecB€seZejd„ƒZRS(c€s@‡fd†}|ƒtjd|ƒ}|jƒ|jƒdS(Nc€s_g‰‡fd†}tj|ƒ|}}tjdƒˆjˆjtjƒƒddƒdS(Nc€sˆjtjƒƒdS(N(R	tthreadt	get_ident((tidents(s*/usr/local/lib/python2.7/test/test_capi.pyR€siis/Couldn't find main thread correctly in the list(Rt_test_thread_stateRRR4RR9R:(RR tb(R(R;s*/usr/local/lib/python2.7/test/test_capi.pyR#}s


R#(R(R,tstarttjoin(RR#tt((Rs*/usr/local/lib/python2.7/test/test_capi.pyttest_thread_statezs


(RRRtreap_threadsRA(((s*/usr/local/lib/python2.7/test/test_capi.pyR8wst
Test_testcapicB€s(eZeƒjd„eeƒDƒƒRS(cc€sC|]9}|jdƒr|jdƒr|tt|ƒfVqdS(ttest_t_codeN(t
startswithtendswithtgetattrR(t.0tname((s*/usr/local/lib/python2.7/test/test_capi.pys	<genexpr>‘s(RRtlocalstupdatetdirR(((s*/usr/local/lib/python2.7/test/test_capi.pyRCscC€stjtttttƒdS(N(Rtrun_unittestRRR8R3RC(((s*/usr/local/lib/python2.7/test/test_capi.pyt	test_main–st__main__(t
__future__RtstringtsysRRtunittestttestRRR9R(tImportErrorR
t
import_moduleRtTestCaseRt
skipUnlessRR3R8RCROR(((s*/usr/local/lib/python2.7/test/test_capi.pyt<module>s.

N	

Zerion Mini Shell 1.0