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ƒWnrtj of}tiƒ\}}}|i i }|i djpt ‚|iidtidƒpt ‚nXdGHdS(Nit test_capi1ttest_exceptionstpysExpected exception(t _testcapitraise_exceptionRt TypeErrorRtsystexc_infoRttbttb_frametf_codetcotco_nametAssertionErrort co_filenametendswithtostextsep(R)RRR!R&((RRµs  *cCsÁdk}y|itdƒWn˜tj oŒ}tiƒ\}}}|i i }|i djpt ‚|iidtidƒpt ‚|i ii }|i djpt ‚nXdGHdS(NiRRR t test_capi2sExpected exception(R!R"RRRR$R%RR&R'R(R)R*R+R,R-R.R/tf_backtco2(R2R)RRR!R&((RR0Ás  %cs6‡d†‰y ˆƒWntj onXdGHdS(Ncs)y ˆƒSWntj o dSnXdS(Niÿÿÿÿ(tgt ValueError((R3(RR3Ös sExpected exception(R3R(R3((R3Rttest_infinite_recursionÕs   (=ttest.test_supportt TestFailedtTESTFNtunlinkttypesR twarningsR$t tracebackR.t exceptionstreloadt ImportErrorRRR tAttributeErrortundefined_attributetxtEOFErrortopentfptclosetstdint savestdint raw_inputtIOErrortundefined_modulet IndexErrortatKeyErrortKeyboardInterruptt MemoryErrort NameErrortundefined_variablet OverflowErrortfilterwarningstOverflowWarningR trangetdummyRRRtstplatformt startswithtIndentationErrortTabErrort SystemErrort SystemExittexitR#R4tchrtZeroDivisionErrort ExceptionRRR0R5(RKR.RRR5RHRR0RXRRER;R$R7R9R8RMRWRR R<R R=RB((Rt?sø