ó {G_Tc@s^ddlmZmZddlZdejfd„ƒYZd„ZedkrZeƒndS(i˙˙˙˙(t run_unittesttcheck_py3k_warningsNt OpcodeTestcBs,eZd„Zd„Zd„Zd„ZRS(cCs§d}x~tdƒD]p}||}y ddWn1tk rBn!tk rRntk rbnXyWnnXzWdX||}qW|dkrŁ|jdƒndS(Nii iiZstry inside for(tranget NameErrortZeroDivisionErrort TypeErrortfail(tselftnti((s-/usr/local/lib/python2.7/test/test_opcodes.pyttest_try_inside_for_loops*      cCsÝdd d„ƒY}d|fd„ƒY}dd d„ƒY}d|fd„ƒY}y |ƒ‚WnnXy |ƒ‚Wn|k r‰nXy |ƒ‚Wn|k rŞnXy |ƒ‚Wn!|k rŐ|jƒnnX|ƒ}|ƒ}y ||‚Wn#|k r }|j||ƒnX|jd ƒy |‚Wn#|k r]}|j||ƒnX|jd ƒy ||‚Wntk r‹nX|jd ƒy ||‚Wn#|k rË}|j||ƒnX|jd ƒdS( NtAClasscBseZRS((t__name__t __module__(((s-/usr/local/lib/python2.7/test/test_opcodes.pyR stBClasscBseZRS((R R(((s-/usr/local/lib/python2.7/test/test_opcodes.pyRstCClasscBseZRS((R R(((s-/usr/local/lib/python2.7/test/test_opcodes.pyRstDClasscBseZd„ZRS(cSsdS(N((Rtignore((s-/usr/local/lib/python2.7/test/test_opcodes.pyt__init__s(R RR(((s-/usr/local/lib/python2.7/test/test_opcodes.pyRss no exception(((Rt assertEqualRtassertIsInstance(RR RRRtatbtv((s-/usr/local/lib/python2.7/test/test_opcodes.pyttest_raise_class_exceptionssX                 cCsDtdƒ}tdƒ}|j||ƒtdƒ}tdƒ}|j||ƒtdƒ}tdƒ}|j||ƒtdƒ}tdƒ}|j||ƒtdƒ}tdƒ}|j||ƒtdƒ}tdƒ}|j||ƒtdƒ}tdƒ}|j||ƒtd ƒ}td ƒ}|j||ƒdS( Ns lambda: Nones lambda a: as lambda a=1: as lambda: 0s lambda: 1slambda a: Noneslambda b: Noneslambda a=None: Noneslambda a=0: Noneslambda a=1: None(tevaltassertNotEqual(Rtftg((s-/usr/local/lib/python2.7/test/test_opcodes.pyttest_compare_function_objectsGs0                cCs1dtfd„ƒY}|j|ƒddƒdS(NtMyStringcBseZd„ZRS(cSsdS(Ni*((Rtvalue((s-/usr/local/lib/python2.7/test/test_opcodes.pyt__mod__ks(R RR!(((s-/usr/local/lib/python2.7/test/test_opcodes.pyRjsii*(tstrR(RR((s-/usr/local/lib/python2.7/test/test_opcodes.pyt test_modulo_of_string_subclassesis(R RR RRR#(((s-/usr/local/lib/python2.7/test/test_opcodes.pyRs  / "cCs0tdtfdtfƒttƒWdQXdS(Ns)exceptions must derive from BaseExceptionsEcatching classes that don't inherit from BaseException is not allowed(RtDeprecationWarningRR(((s-/usr/local/lib/python2.7/test/test_opcodes.pyt test_mainps  t__main__(ttest.test_supportRRtunittesttTestCaseRR%R (((s-/usr/local/lib/python2.7/test/test_opcodes.pyts  j