%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_select.pyo

ó
Nêáac@s›ddlmZddlZddlZddlZddlZejejd dkdƒdejfd	„ƒYƒZ	d
„Z
edkr—e
ƒndS(
iÿÿÿÿ(ttest_supportNitwintos2triscoss can't easily test on this systemtSelectTestCasecBsReZddd„ƒYZdd	d„ƒYZd„Zd„Zd„Zd„ZRS(
tNopecBseZRS((t__name__t
__module__(((s,/usr/local/lib/python2.7/test/test_select.pyRstAlmostcBseZd„ZRS(cCsdS(Ntfileno((tself((s,/usr/local/lib/python2.7/test/test_select.pyR	s(RRR	(((s,/usr/local/lib/python2.7/test/test_select.pyRscCs‰|jttjdddƒ|jttj|jƒgggƒ|jttj|jƒgggƒ|jttjgggdƒdS(Niiisnot a number(tassertRaisest	TypeErrortselectRR(R
((s,/usr/local/lib/python2.7/test/test_select.pyttest_error_conditionss%%cCsUtjgggdƒ\}}}|j||ƒ|j||ƒ|j||ƒdS(Ni(R
tassertIsNot(R
trtwtx((s,/usr/local/lib/python2.7/test/test_select.pyttest_returned_list_identitys!cCsd}tj|dƒ}xêd
dD]Þ}tjr>d
G|GHntj|ggg|ƒ\}}}|||fgggfkr†q#n|||f|gggfkrë|jƒ}tjrÊt|ƒGHn|s#tjrádGHnPq#q#n|jd|||ƒq#W|j	ƒdS(Ns?for i in 0 1 2 3 4 5 6 7 8 9; do echo testing...; sleep 1; doneRiiiiiii
s	timeout =tEOFs'Unexpected return values from select():(iiiiii(N(
NNNNNNNNNN(
tostpopentNoneRtverboseR
treadlinetreprtfailtclose(R
tcmdtpttouttrfdtwfdtxfdtline((s,/usr/local/lib/python2.7/test/test_select.pyttest_selects&	$!		cs`g‰dd‡fd†ƒY}|ƒgdˆ(|jtjgˆgƒgˆd gfƒdS(NtFcseZ‡fd†ZRS(csˆd=tjjƒS(Niÿÿÿÿ(tsyst
__stdout__R	(R
(ta(s,/usr/local/lib/python2.7/test/test_select.pyR	8s(RRR	((R((s,/usr/local/lib/python2.7/test/test_select.pyR%7si
i((tassertEqualR
(R
R%((R(s,/usr/local/lib/python2.7/test/test_select.pyttest_select_mutated5s(((RRRRRRR$R*(((s,/usr/local/lib/python2.7/test/test_select.pyRs			cCstjtƒtjƒdS(N(Rtrun_unittestRt
reap_children(((s,/usr/local/lib/python2.7/test/test_select.pyt	test_main>s
t__main__(RRR(ttestRtunittestR
RR&tskipIftplatformtTestCaseRR-R(((s,/usr/local/lib/python2.7/test/test_select.pyt<module>s	5	

Zerion Mini Shell 1.0