config root man

Current Path : /compat/linux/proc/self/root/usr/local/lib/python2.5/test/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/test/test_queue.pyo

³ò
h”Rc@sÿddkZddkZddkZddkZddklZlZlZdZdei	fd„ƒYZ
d„Zd„Zde
fd	„ƒYZd
eifd„ƒYZd„Zd
„ZdaeiƒZd„Zd„Zd„Zd„ZeƒdS(iÿÿÿÿN(tverifyt
TestFailedtverboseit_TriggerThreadcBseZd„Zd„ZRS(cCs5||_||_tiƒ|_tii|ƒdS(N(tfntargst	threadingtEventtstartedEventtThreadt__init__(tselfRR((s+/usr/local/lib/python2.5/test/test_queue.pyR
s		cCs.tidƒ|iiƒ|i|iŒdS(Ngš™™™™™¹?(ttimetsleepRtsetRR(R((s+/usr/local/lib/python2.5/test/test_queue.pytruns	

(t__name__t
__module__R
R(((s+/usr/local/lib/python2.5/test/test_queue.pyR
s	cCs{t||ƒ}|iƒ||Œ}|iiƒptd|ƒ‚n|idƒ|iƒotd|ƒ‚n|S(Ns,blocking function '%r' appeared not to blocki
s,trigger function '%r' appeared to not return(RtstartRtisSetRtjointisAlive(t
block_funct
block_argsttrigger_functtrigger_argstttresult((s+/usr/local/lib/python2.5/test/test_queue.pyt_doBlockingTest+s


c
Csªt||ƒ}|iƒz;y||ŒWn|j
o
‚nXtd|ƒ‚Wd|idƒ|iƒotd|ƒ‚n|iiƒptdƒ‚nXdS(Nsexpected exception of kind %ri
s,trigger function '%r' appeared to not returns(trigger thread ended but event never set(RRRRRRR(RRRRtexpected_exception_classR((s+/usr/local/lib/python2.5/test/test_queue.pyt_doExceptionalBlockingTest:s


tFailingQueueExceptioncBseZRS((RR(((s+/usr/local/lib/python2.5/test/test_queue.pyROstFailingQueuecBs#eZd„Zd„Zd„ZRS(cGs)t|_t|_tii||ŒdS(N(tFalset
fail_next_putt
fail_next_gettQueueR
(RR((s+/usr/local/lib/python2.5/test/test_queue.pyR
Ss		cCs3|iot|_td‚ntii||ƒS(NsYou Lose(R"R!RR$t_put(Rtitem((s+/usr/local/lib/python2.5/test/test_queue.pyR%Ws
	
cCs0|iot|_td‚ntii|ƒS(NsYou Lose(R#R!RR$t_get(R((s+/usr/local/lib/python2.5/test/test_queue.pyR'\s
	
(RRR
R%R'(((s+/usr/local/lib/python2.5/test/test_queue.pyR Rs		cCs„|iƒp
td‚nx%ttdƒD]}|i|ƒq+Wt|_y#|idddƒtdƒ‚Wntj
onXt|_y#|idddƒtdƒ‚Wntj
onX|id	ƒt	|i
ƒd
ƒt|_y)t|id|idƒtdƒ‚Wntj
onX|id	ƒt|_y5t
|idtdf|idtƒtdƒ‚Wntj
onX|id	ƒt	|i
ƒd
ƒ|iƒt	|i
ƒd
ƒ|id	ƒt	|i
ƒd
ƒt|id|idƒxttƒD]}|iƒqWt	|iƒdƒ|idƒt|_y|iƒtdƒ‚Wntj
onXt	|iƒdƒt|_y |iddƒtdƒ‚Wntj
onXt	|iƒdƒ|iƒt	|iƒdƒt|_y,t
|id|idtƒtdƒ‚Wntj
onXt	|iƒdƒ|iƒt	|iƒdƒdS(Ns&Call this function with an empty queueitoopstblockis)The queue didn't fail when it should havettimeoutgš™™™™™¹?tlastsQueue should be fulltfulli
sQueue should not be fullsQueue should be emptytfirstsQueue should not be emptytempty(sfull(((sfull(((sempty(R.tRuntimeErrortranget
QUEUE_SIZEtputtTrueR"RRRR,RtgetRR#(tqti((s+/usr/local/lib/python2.5/test/test_queue.pytFailingQueueTestbsŽ

		
	
	




	
	
	
cCse|iƒp
td‚n|idƒ|idƒt|iƒdjo|iƒdjdƒx9ttdƒD]'}|i|ƒt|iƒdƒqqWt|iƒdƒ|idƒt|iƒd	ƒy#|id
ddƒtd
ƒ‚Wnt	i
j
onXy#|id
ddƒtdƒ‚Wnt	i
j
onXt|id|idƒt|id
tdf|idƒxttƒD]}|iƒqWt|iƒdƒy |iddƒtdƒ‚Wnt	i
j
onXy |iddƒtdƒ‚Wnt	i
j
onXt|id|idƒt|itdf|idƒdS(Ns&Call this function with an empty queueioiÞs&Didn't seem to queue the correct data!isQueue should not be emptysQueue should not be fullR+sQueue should be fullR,R)is(Didn't appear to block with a full queueR*g{®Gáz„?s+Didn't appear to time-out with a full queuei
sQueue should be emptys*Didn't appear to block with an empty queues-Didn't appear to time-out with an empty queueR.(sfull((((sempty(sempty(R.R/R2RR4R0R1R,RR$tFullRR3tEmpty(R5R6((s+/usr/local/lib/python2.5/test/test_queue.pytSimpleQueueTest³sR



%

"
icCsnxgto_|iƒ}|djo|iƒdSntiƒzt|7aWdtiƒX|iƒqWdS(N(R3R4tNonet	task_donetcumlocktacquiretcumtrelease(R5tx((s+/usr/local/lib/python2.5/test/test_queue.pytworkerãs


c	Cs¯dax-dD]%}tidtd|fƒiƒq
Wx!tdƒD]}|i|ƒqCW|iƒttt	t
dƒƒjdƒxdD]}|idƒqŠW|iƒdS(	NiittargetRids0q.join() did not block until all tasks were done(ii(ii(R?RR	RBRtxrangeR2RRtsumR0R;(R5R6((s+/usr/local/lib/python2.5/test/test_queue.pyt
QueueJoinTestñs#

cCs4y|iƒWntj
onXtdƒ‚dS(Ns(Did not detect task count going negative(R<t
ValueErrorR(R5((s+/usr/local/lib/python2.5/test/test_queue.pytQueueTaskDoneTestþs
cCs›tiƒ}t|ƒt|ƒt|ƒt|ƒtitƒ}t|ƒt|ƒto	dGHnttƒ}t|ƒt|ƒto	dGHndS(Ns!Simple Queue tests seemed to works"Failing Queue tests seemed to work(R$RHRFR1R:RR R7(R5((s+/usr/local/lib/python2.5/test/test_queue.pyttests





	

(R$tsysRRttest.test_supportRRRR1R	RRRt	ExceptionRR R7R:R?tLockR=RBRFRHRI(((s+/usr/local/lib/python2.5/test/test_queue.pys<module>s&			Q	-		
		

Man Man