1SSSKrSSKrSSKrSSKJr "SS\R 5r"SS\R 5r\ S:Xa\R"5 gg)N)systemcL\rSrSrSrSrSrSrSrSr Sr S r S r S r S rg )ExceptionClassTestszYTests for anything relating to exception objects themselves (e.g., inheritance hierarchy)cJUR[[[55 gN) assertTrue issubclass Exceptionobjectselfs >/opt/alt/python313/lib64/python3.13/test/test_baseexception.pytest_builtins_new_style+ExceptionClassTests.test_builtins_new_style s  9f56cSH:nUR[X5URR<SU<S35 M< g)N)args__str____repr__z missing z attribute)r hasattr __class____name__)rinsattrs rverify_instance_interface-ExceptionClassTests.verify_instance_interfaces33D OOGC.//7 84rc|[5n[RR5H6n[ U[ 5(aUR UR5 M6M8 [[RR[RR[5SS5SS9nUR5R!5n[#[U5nUR)XASU-5 UR+U5 /nSnUGHknUR!5nUR-S5n XS-Sn S U ;aAU R/S 5n XS -S n U SU S - n [15U :waUR+U 5 MsS U ;aU R/S 5n U SU S - n [#[U 5nXy:aUR3UW45 O/Xy:a*US SU :aUR55 US SU :aMUR7[ WUS S 5UR<SUS S R<35 UR9U"55 UR)X5 UR+U 5 UnU nGMn UR;5 [SU55nUR=[?U5SSU-5 g![a GMf=f![$a UR'SU-5 GNf=f![$a UR'S U -5 GNgf=f![a Nf=f!UR;5 f=f)Nrzexception_hierarchy.txtzutf-8)encodingzbase class %s not a built-inz %s not foundu─([z%s not a built-in exceptionz is not a subclass of c3T# UHoRS5(aMUv M g7f)_N) startswith).0es r 7ExceptionClassTests.test_inheritance..SsBA S0Aaas( (z%s not accounted for) setbuiltins__dict__valuesr BaseExceptionaddr TypeErroropenospathjoinsplit__file__readlinerstripgetattrAttributeErrorfailassertIndiscardrindexindexplatform_systemappendpopr rclose assertEquallen)rexc_setobject_inheritance_treesuperclass_namelast_exc superclasses last_depthexc_linedepthexc_name paren_index platform_name left_bracketexcs rtest_inheritance$ExceptionClassTests.test_inheritances%((//1G g}55KK 0 0162  RWW]]84Q79RS ". %.779@@BO L"8_= MM/(?: < OOO ,LJ,#??, .#!GH-(?"*.."5K$,]2$>M'Q7H&(M91 (?#+>>##6L'a8HH!(H5C% ''X(>?'&r*1-6$((*'r*1-6 3 R0@0C D03  $Q'002322359 h0)" C-F  " " $BBB Wq*@7*JKq  " L 8?JK L.&HII;hFGH!  " " $s0J=0L)KB>L)K4.AL)6AL):L+L)= K  K K1-L)0K11L)4LL)LL) L&#L)%L&&L))L;)lengthrstrreprc [URU5H%unup4URX4U<SU<SU<35 M' g)Nz: z != )zipinterface_testsrF)rresults test_namegivenexpecteds rinterface_test_driver)ExceptionClassTests.interface_test_driverXs>,/0D0Dg,N (I(   U x/! "-Orc Sn[U5n[UR5S/URSU/[U5[U5/[ U5UR R <SU<S3/4nURU5 g)Nspamr"rr!))r rGrrYrZrrrb)rargrUr^s rtest_interface_single_arg-ExceptionClassTests.test_interface_single_arg]srnM1% S'9Hc#h' #YCMM$:$:C@ AC ""7+rcBSn[[U55n[U6n[UR5U/URU/[ U5[ U5/[ U5URR[ UR5-/4nURU5 g)N) tupleranger rGrrYrZrrrb)r arg_countrrUr^s rtest_interface_multi_arg,ExceptionClassTests.test_interface_multi_argfs U9%&M9-$/?S3t9%cCMM22T#((^CDF ""7+rc[5n[UR5S/UR[5/[ U5S/[ U5UR RS-/4nURU5 g)Nrz()) r rGrrlrYrZrrrb)rrUr^s rtest_interface_no_arg)ExceptionClassTests.test_interface_no_argpsckM1%%'':S2cCMM22T9:< ""7+rc^SSKn0m"U4SjS[5n"SS[5n[5nU"5TU"5'URT5 UR 5 g)Nrc4>^\rSrSrS\4UU4SjjrSrU=r$)XExceptionClassTests.test_setstate_refcount_no_crash..HashThisKeyWillClearTheDict}returnc@>TR5 [TU] 5$r)clearsuper__hash__)rrds rr}aExceptionClassTests.test_setstate_refcount_no_crash..HashThisKeyWillClearTheDict.__hash__~s w'))r)r __module__ __qualname____firstlineno__intr}__static_attributes__ __classcell__)rr~s@rHashThisKeyWillClearTheDictrw}s *# * *rrc\rSrSrSrg)BExceptionClassTests.test_setstate_refcount_no_crash..ValuerNrrrrrrrrValuer rr)gcrYr __setstate__collect)rrrrrUr~s @rtest_setstate_refcount_no_crash3ExceptionClassTests.test_setstate_refcount_no_crashxsW   *# * C k+07 % '(  rrN)rrrr__doc__rrrVr]rbrhrorsrrrrrrrs878 ?LB8O" ,,,rrcB\rSrSrSrSrSrSrSrSr Sr S r S r g ) UsageTestszTest usage of exceptionsc(Ue![a gf=f)z6Make sure that raising 'object_' triggers a TypeError.N)r2r=typerrIs r raise_failsUsageTests.raise_failss M   s  cN[e!Ua [ef=f![a [e[a' URS[U5-5 [ef=f!U4a gf=f![a g[a URS[U5-5 gf=f)z,Catching 'object_' should raise a TypeError.z#TypeError expected when catching %sNz;TypeError expected when catching %s as specified in a tuple)r r2r=rrs r catch_failsUsageTests.catch_failss M   1     1   M II;d7mK L 1   M :     1 II "&w-0 1 1s^ A" AA"&AA"A"A,)A/+A,,A// B$;&B$#B$cp"SS[5nURU5 URU"55 g)Nc\rSrSrSrg)DUsageTests.test_raise_new_style_non_exception..NewStyleClassrNrrrr NewStyleClassrrrr)r r)rrs r"test_raise_new_style_non_exception-UsageTests.test_raise_new_style_non_exceptions,  F  ' )rc&URS5 gNre)rr s rtest_raise_stringUsageTests.test_raise_string  rcp"SS[5nURU5 URU"55 g)Nc\rSrSrSrg)AUsageTests.test_catch_non_BaseException..NonBaseExceptionrNrrrrNonBaseExceptionrrrr)r r)rrs rtest_catch_non_BaseException'UsageTests.test_catch_non_BaseExceptions/ v  )* )+,rc6UR[55 gr)rr0r s r!test_catch_BaseException_instance,UsageTests.test_catch_BaseException_instances )rc&URS5 gr)rr s rtest_catch_stringUsageTests.test_catch_stringrrrN) rrrrrrrrrrrrrrrrrrs)"G1.*!-*!rr__main__) unittestr-r4platformrrBTestCaserrrmainrrrrsQ .G(++GT?!""?!D z MMOr