mς %U²Ic@sˆdkZdklZdkZdkZeidƒo eedƒ Zd„Zd„Z d„Z d„Z e djo e ƒndS( N(s test_supporttnetworktsslcCs˜tidƒdk}tio dGHntiƒytidƒWntj onXdGHtiddƒ|i dƒ}|i ƒ}|i ƒdS(NRstest_basic ...isdidn't raise TypeErrorsthis is a random stringf75.0shttps://sf.net(t test_supporttrequiresturllibtverbosetsockett RAND_statustRAND_egdt TypeErrortRAND_addturlopentftreadtbuftclose(R RR((t1/data/zmath/lib/python2.4/test/test_socket_ssl.pyt test_basic s      cCsΈtidƒtio dGHnd}tiƒ}|idƒy|i|ƒWn.tij ot i d|fIJdSnXti |ƒ}|i dƒ|i dƒ|iƒdS( NRstest_timeout ...s gmail.orgiγf30.0sξ WARNING: an attempt to connect to %r timed out, in test_timeout. That may be legitimate, but is not the outcome we hoped for. If this message is seen often, test_timeout should be changed to use a more reliable address.i(s gmail.orgiγ(RRRtADDRRtst settimeouttconnectttimeouttsyststderrRtssR R(RRR((Rt test_timeout"s        cs†tio dGHny dk‰Wntj o dSnXdg‰‡‡d†}‡d†}ˆi|fƒti dƒ|ƒdS(Nstest_rude_shutdown ...iΞ&cs]tititiƒ}ti|dˆdƒˆd<|idƒ|iƒ~ˆi ƒdS(Ntii( RtAF_INETt SOCK_STREAMRRt bind_porttPORTtlistentaccepttthreadtexit(R(R"R(RtlistenerLs   csktititiƒ}|idˆdfƒyti|ƒ}Wntij onXt i d‚dS(Nt localhostis&connecting to closed SSL socket failed( RRRRRRRtssl_socktsslerrorRt TestFailed(R&R(R(Rt connectorTsi( RRR"t ImportErrorRR$R)tstart_new_threadttimetsleep(R$R"R)R((R"RRttest_rude_shutdownAs       cCs<ttdƒptidƒ‚ntƒtƒtƒdS(NRs socket module has no ssl support(thasattrRRt TestSkippedR.RR(((Rt test_maincs t__main__( RttestRRR,tis_resource_enabledR/t skip_expectedRRR.R1t__name__( RRRRRR5R,R.R1((Rt?s        "