mò %U²Ic@sÆdklZlZlZdklZdkZdkZdkZdk Z dGHydk Z e e ƒWne j oZ ee ‚nXd„Zd„ZeeƒdkZy eiZWnej onXeeƒdkZeedƒZeiƒeedƒZeiZz0yee_eƒZWnej onXWdee_eiƒXeeƒyeddƒWnej onXee ƒy dkZWne j onXeeƒgZyed ZWnej onXeeƒhZyed ZWnej onXeeƒd GHee ƒd GHee!ƒy e"ZWne!j onXee#ƒei$d de%e&ƒdZxe'dƒD]Z(ee7Zq›Wee)ƒdGHee*ƒy ddUWne*j onXd„Z+dZ,ei-i.dƒodGHdGHne+e,dƒdZ,e+e,dƒe+ddƒee/ƒee0ƒee1ƒdGHee2ƒdkZyei3dƒWne2j onXee4ƒy gfWne4j onXee5ƒye6dƒZWne5j onXee7ƒyddZWne7j onXee8ƒyddZWne8j o Z nXdfd„ƒYZ9d „Z:d!„Z;ei-i.dƒpe:ƒe;ƒneeƒd"„Z<e<ƒdS(#(s TestFailedsTESTFNsunlink(s ClassTypeNs5. Built-in exceptionscCsny |d‚Wn!|j o}t|ƒ}nXy|dƒ‚Wn!|j o}t|ƒ}nX|GHdS(Ntspam(texcterrtstrtbuf(RRR((t1/data/zmath/lib/python2.4/test/test_exceptions.pyttest_raise_catchs cCs/t|ƒt|tƒo |iGHn|GHdS(N(Rtthingt isinstancet ClassTypet__name__(R((Rtrs  twR sthis file does not existi tkeys(not testable in a script)s(not safe to test)terrortii€s(not used any more?)s/ cCs_yt|ddƒWn?tj o3}|iGH|i|jo dGHq[dG|GHnXdGHdS(Ns texectoks expected:s"failed to get expected SyntaxError(tcompiletsrct SyntaxErrortetmsg(RRR((Rtckmsgms s=while 1: try: pass finally: continue tjavas0'continue' not supported inside 'finally' clauseRs#try: continue except: pass s'continue' not properly in loops continue s(hard to reproduce)ii't BadExceptioncBstZd„ZRS(NcCs td‚dS(Nscan't instantiate BadException(t RuntimeError(tself((Rt__init__²s(R t __module__R(((RR±scCs_dk}y|itdƒWn6tj o*}tiƒ\}}}|i i }nXdGHdS(NisExpected exception( t _testcapitraise_exceptionRt TypeErrorRtsystexc_infoRttbttb_frametf_codetco(R&RRRR#((Rt test_capi1µs  cCsndk}y|itdƒWnEtj o9}tiƒ\}}}|i i }|i i i }nXdGHdS(NisExpected exception(RRRRRR!R"RR#R$R%R&tf_backtco2(R)R&RRRR#((Rt test_capi2Ás  cs6‡d†‰y ˆƒWntj onXdGHdS(Ncs)y ˆƒSWntj o dSnXdS(Niÿÿÿÿ(tgt ValueError((R+(RR+Ös sExpected exception(R+R(R+((R+Rttest_infinite_recursionÕs   (=ttest.test_supportt TestFailedtTESTFNtunlinkttypesR twarningsR!t tracebacktost exceptionstreloadt ImportErrorRRR tAttributeErrortundefined_attributetxtEOFErrortopentfptclosetstdint savestdint raw_inputtIOErrortundefined_modulet IndexErrortatKeyErrortKeyboardInterruptt MemoryErrort NameErrortundefined_variablet OverflowErrortfilterwarningstOverflowWarningR trangetdummyRRRtstplatformt startswithtIndentationErrortTabErrort SystemErrort SystemExittexitR R,tchrtZeroDivisionErrort ExceptionRR'R*R-(RDR5RRR-RAR'R*RQRR>R3R!R/R1R0RFRPRR R4R R6R;((Rt?sø