KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /proc/22697/root/usr/lib64/python2.4/test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/22697/root/usr/lib64/python2.4/test/test_poll.pyc
mò
‚=5Dc@s³dkZdkZdkZdkZdklZlZlZlZyei	Wne
j
oed‚nXd„Zd„Zd„Z
d„Zd„ZeƒeƒeƒdS(N(sverifysverbosesTestSkippedsTESTFNs-select.poll not defined -- skipping test_pollcCs=g}x0|D](\}}||@o|i|ƒq
q
W|S(N(tmatchtreadytfdtmodetflagtappend(RRRRR((t&/usr/lib64/python2.4/test/test_poll.pytfind_ready_matchingscCsédGHtiƒ}
d}d}t|ƒ}g}g}h}
h}xzt|ƒD]l}t
iƒ\}}	|
i|tiƒ|
i|	tiƒ|i|ƒ|i|	ƒ|	|
|<|||	<qNWx|o|
iƒ}t|tiƒ}|p
td‚nti|ƒ}	t
i|	|ƒ|
iƒ}t|tiƒ}|p
td‚nti|ƒ}t
i||ƒ}tt|ƒ|jƒ|GHt
i |
|ƒt
i |ƒ|
i!|
|ƒ|
i!|ƒ|i"|
|ƒqÁWt#ƒdGHdS(siBasic functional test of poll object

    Create a bunch of pipe and test that poll works with them.
    sRunning poll test 1is This is a test.sno pipes ready for writingsno pipes ready for readingsPoll test 1 completeN($tselecttpolltpt	NUM_PIPEStMSGtlentMSG_LENtreaderstwriterstr2wtw2rtrangetitostpipetrdtwrtregistertPOLLINtPOLLOUTRRRt
ready_writerstRuntimeErrortrandomtchoicetwritet
ready_readerstreadtbuftverifytcloset
unregistertremovetpoll_unit_tests(RRRRRRRRR!RRR#RR
R((Rt
test_poll1sR






cCs=d}yti|ƒWntj
onXtiƒ}|i|ƒ|iƒ}t	|d|ti
fjƒttdƒ}|iƒ}tiƒ}|i|ƒ|iƒ}t	|dd|jƒ|iƒ|iƒ}t	|d|ti
fjƒtitƒtiƒ}y|i|ƒWntj
onXdGHy|i|ƒWntj
onXdGHtiƒ}y|idƒWntj
onXdGHtiƒ}dfd	„ƒY}d
fd„ƒY}y|i|ƒdƒWntj
onXdGHy|i|ƒdƒWntj
onXdGHdS(
Ni*itws+Bogus register call did not raise TypeErrors-Bogus unregister call did not raise TypeErroris,Bogus unregister call did not raise KeyErrortNopecBstZRS(N(t__name__t
__module__(((RR+ustAlmostcBstZd„ZRS(NcCsdS(Ntfileno((tself((RR/ys(R,R-R/(((RR.xss(expected TypeError exception, not raised(tFDRR%tOSErrorRR	R
RtrR$tPOLLNVALtopentTESTFNtfR/Rtunlinkt	TypeErrorR&tKeyErrortpollsterR+R.(R+R7R.R;R
R3R1R((RR(Dsb



cCsBdGHd}ti|dƒ}tiƒ}|i|tiƒxðdddD]à}t
o
dG|GHn|i|ƒ}|gjoqKn|d\}}|ti@o)|iƒ}|d
jo	dGHqKqKqK|ti@oE|iƒ}t
ot|ƒGHn|pt
o	dGHnPqKqKqKdG|GHqKW|iƒdGHdS(NsRunning poll test 2s?for i in 0 1 2 3 4 5 6 7 8 9; do echo testing...; sleep 1; doneR3iièiÐi i@i€>iÿÿÿÿi
s	timeout =ts6error: pipe seems to be closed, but still returns datatEOFs)Unexpected return value from select.poll:sPoll test 2 complete(iièiÐi i@i€>(iÿÿÿÿ(tcmdRtpopenR
RR	R;RRttouttverbosetfdlistRtflagstPOLLHUPtreadlinetlinetreprR%(R;RBR>RCR
R@RRF((Rt
test_poll2Šs<


		

cCswdGHtiƒ}|idƒy|idd>ƒWntj
onXdGHdd}|djo	d	GHnd
GHdS(NsRunning poll test 3ili@s-Expected OverflowError with excessive timeoutiiisOverflow must have occurredsPoll test 3 complete(RR	R;Rt
OverflowErrortx(RJR;((Rt
test_poll3«s


	(tsysRRRttest.test_supportR$RAtTestSkippedR6R	tAttributeErrorRR)R(RHRK(
R(RNRAR$RRLRHR6R)RRRRK((Rt?s$		1	F	!	

Anon7 - 2021