config root man

Current Path : /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 : //usr/local/lib/python2.5/test/test_timeout.pyc

³ò
h”Rc@s¡dZddkZddklZeidƒZddkZddkZdeifd„ƒYZ	deifd„ƒYZ
d	„Zed
joeƒndS(s&Unit tests for socket timeout feature.iÿÿÿÿN(ttest_supporttnetworktCreationTestCasecBs_eZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„ZRS(
s9Test case for socket.gettimeout() and socket.settimeout()cCstititiƒ|_dS(N(tsockettAF_INETtSOCK_STREAMtsock(tself((s-/usr/local/lib/python2.5/test/test_timeout.pytsetUpscCs|iiƒdS(N(Rtclose(R((s-/usr/local/lib/python2.5/test/test_timeout.pyttearDownscCs |i|iiƒddƒdS(Nstimeout not disabled by default(tassertEqualRt
gettimeouttNone(R((s-/usr/local/lib/python2.5/test/test_timeout.pyttestObjectCreationscCs|iidƒ|i|iiƒdƒ|iidƒ|i|iiƒdƒ|iidƒ|i|iiƒdƒdS(Ngáz®Ga@i(Rt
settimeoutRRR
(R((s-/usr/local/lib/python2.5/test/test_timeout.pyttestFloatReturnValuescCsn|iidƒ|it|iiƒƒtdƒƒ|iidƒ|it|iiƒƒtdƒƒdS(Nigð?g333333@(RRRttypeR(R((s-/usr/local/lib/python2.5/test/test_timeout.pyttestReturnType&s%cCsÚ|iidƒ|iidƒ|iidƒ|iidƒ|it|iidƒ|it|iidƒ|it|iidƒ|it|iigƒ|it|iihƒ|it|iidƒdS(Nilgtuy((RRR
tassertRaisest	TypeError(R((s-/usr/local/lib/python2.5/test/test_timeout.pyt
testTypeCheck.scCsO|it|iidƒ|it|iidƒ|it|iidƒdS(Niÿÿÿÿlÿÿÿÿgð¿(Rt
ValueErrorRR(R((s-/usr/local/lib/python2.5/test/test_timeout.pyttestRangeCheck;scCsÈ|iidƒ|iidƒ|i|iiƒdƒ|iidƒ|i|iiƒdƒ|iidƒ|iidƒ|i|iiƒdƒ|iidƒ|i|iiƒdƒdS(Ni
iig(RRtsetblockingRRR
(R((s-/usr/local/lib/python2.5/test/test_timeout.pyttestTimeoutThenBlockingAscCsv|iidƒ|iidƒ|i|iiƒdƒ|iidƒ|iidƒ|i|iiƒdƒdS(Nii(RRRRR(R((s-/usr/local/lib/python2.5/test/test_timeout.pyttestBlockingThenTimeoutOs(t__name__t
__module__t__doc__RR
RRRRRRR(((s-/usr/local/lib/python2.5/test/test_timeout.pyR
s						
		tTimeoutTestCasecBseeZdZdZd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„ZRS(s/Test case for socket.socket() timeout functionsg@cCs1tititiƒ|_d|_d|_dS(Nswww.python.org.iPs	127.0.0.1iûb(swww.python.org.iP(s	127.0.0.1iûb(RRRRtaddr_remotet
addr_local(R((s-/usr/local/lib/python2.5/test/test_timeout.pyRes	cCs|iiƒdS(N(RR	(R((s-/usr/local/lib/python2.5/test/test_timeout.pyR
jscCsçd}|ii|ƒtiƒidƒdddgjp&tiƒidƒdd!dgjo
d|_ntiƒ}|iti|ii	|iƒtiƒ}t
||ƒ}|i|||ijd
||i|fƒdS(Ngü©ñÒMbP?t.iþÿÿÿtpythontorgiÿÿÿÿtxs4allstut.fiiPs<timeout (%g) is more than %g seconds more than expected (%g)(stut.fiiP(
RRRtgetfqdntsplitR ttimetfailUnlessRaisesterrortconnecttabstassert_tfuzz(Rt_timeoutt_t1t_t2t_delta((s-/usr/local/lib/python2.5/test/test_timeout.pyttestConnectTimeoutms&&

cCsžd}|ii|iƒ|ii|ƒtiƒ}|iti|iidƒtiƒ}t	||ƒ}|i
|||ijd||i|fƒdS(Ng{®Gáz”?is2timeout (%g) is %g seconds more than expected (%g)(RR+R RR(R)RR*trecvR,R-R.(RR/R0R1R2((s-/usr/local/lib/python2.5/test/test_timeout.pyttestRecvTimeout‚scCs«d}|ii|ƒ|ii|iƒ|iidƒtiƒ}|iti|ii	ƒtiƒ}t
||ƒ}|i|||ijd||i|fƒdS(Niis2timeout (%g) is %g seconds more than expected (%g)(
RRtbindR!tlistenR(R)RR*tacceptR,R-R.(RR/R0R1R2((s-/usr/local/lib/python2.5/test/test_timeout.pyttestAcceptTimeout‘scCs¹d}tititiƒ|_|ii|ƒ|ii|iƒtiƒ}|iti	|ii
dƒtiƒ}t||ƒ}|i|||i
jd||i
|fƒdS(Nii s2timeout (%g) is %g seconds more than expected (%g)(RRt
SOCK_DGRAMRRR6R!R(R)R*trecvfromR,R-R.(RR/R0R1R2((s-/usr/local/lib/python2.5/test/test_timeout.pyttestRecvfromTimeout¡scCsdS(N((R((s-/usr/local/lib/python2.5/test/test_timeout.pyttestSend±scCsdS(N((R((s-/usr/local/lib/python2.5/test/test_timeout.pyt
testSendto¶scCsdS(N((R((s-/usr/local/lib/python2.5/test/test_timeout.pyttestSendall»s(
RRRR.RR
R3R5R9R<R=R>R?(((s-/usr/local/lib/python2.5/test/test_timeout.pyRZs								cCs!tidƒtittƒdS(NR(Rtrequirestrun_unittestRR(((s-/usr/local/lib/python2.5/test/test_timeout.pyt	test_mainÁs
t__main__(
RtunittestttestRtis_resource_enabledt
skip_expectedR(RtTestCaseRRRBR(((s-/usr/local/lib/python2.5/test/test_timeout.pys<module>sMg	


Man Man