ê)͠SrSSKrSSKJr SSKJrJrJr SSKrSSK J r J r SSK Jr SSKrSSKJr \"\"S55r\"\"S 55r"S S \ \5r"S S \ 5r\S:Xa\ "5 gg)z) Test cases for pyclbr.py Nick Mathewson N)dedent) FunctionType MethodTypeBuiltinFunctionType)TestCasemain)util)ExtraAssertionscgNr 7/opt/alt/python313/lib64/python3.13/test/test_pyclbr.pyrTrcgr r )cs rrrrrcH\rSrSrSrSrSrS SjrSrS r S r S r Sr g) PyclbrTestc[U5[U5- [U5- nU(aG[SU<SU<SU<3[RS9 UR SUR 5-5 gg)z/succeed iff {l1} - {ignore} == {l2} - {ignore} zl1=z l2=z ignore=filez %r missingN)setprintsysstderrfailpop)selfl1l2ignoremissings r assertListEqPyclbrTest.assertListEqsQr7SW$F 3  r2v>SZZ P IIlW[[]2 3 rcnX#;agX!;a[SU[RS9 URX!5 g)z)succeed iff key in obj or key in ignore. Nz***r)rrrassertIn)r objkeyr#s r assertHaskeyPyclbrTest.assertHaskey#s* =& > %#** - crc>X;aX#;aURX5 ggg)z1succeed iff a == b or a in ignore or b in ignore N) assertEqual)r abr#s rassertEqualsOrIgnored PyclbrTest.assertEqualsOrIgnored*s ?q   Q " /?rNr c *[U5[S/5-nUc[U[50S/5n[R"U5nSnUR 5GHupgXc;aM UR X&U5 [X&5n[U[R5(aVURU[[45 URU:waMwURURUR5 MURU[ 5 URU:waMUR"V s/sHoR$PM n n UR&V s/sHn [U SU 5PM n n UR)XU5 /n UR0R35H.n U"U[X5U 5(dMU R5U 5 M0 UR7S5=n(ay/nUR8R35HXn U R;S 5(a.U R=S 5(dUR5SUU 35 MGUR5U 5 MZ O#[?UR8R355nUR)XU5 URURUR5 URAUR$URBU5 GM S n[EU5HMn[X&5n[U[ [45(dM+U"UU5(dM;URGXFU5 MO gs sn fs sn f! [+SU-[,R.S9 e=f! [+SU-[,R.S9 e=f) zsucceed iff pyclbr.readmodule_ex(modulename) corresponds to the actual module object, module. Any identifiers in ignore are ignored. If no module is provided, the appropriate module is loaded with __import__.objectNzcURn[U[5(a([X2[5(aURULagO[U[ 5(dgUR nURS5(a?URS5(d)UR RS5=n(aSUU3nXB:H$)NF___) __dict__ isinstancerClassMethodType__self__r__name__ startswithendswithlstrip)oclassr)name classdictobjnamestripped_typenames rismethod(PyclbrTest.checkModule..ismethod>sI#z**"9?ODDLL. /\22llG!!$''0@0@0F0F(.(>(>s(CC$C !"3!4WI>G? "rrAzclass=%srr7r6c[U[5(aURUR:H$[U[5(aUR UR L$g)NF)r9type __module__r<r __globals__r8)itemmodules r defined_in*PyclbrTest.checkModule..defined_insG$%%&//99$ --''6??::r)$r __import__globalspyclbr readmodule_exitems assertHasAttrgetattrr9FunctionassertIsInstancerrrIr.rLrH __bases__r<superr%rrrr8keysappendr?methodsr=r>listr1rAdirr+)r moduleNamerLr#dictrErAvaluepy_itembase real_bases pyclbr_bases actualMethodsmrD foundMethodsrMrKs r checkModulePyclbrTest.checkModule/s VsH:. > GIrI;GF##J/ #" ::Q/RS%%3  !3!3U\\B%%gt4%%38?8I8IJ8Imm8I J-2[[ ;-8T")vt!<-8 ;%%jG !#  ))..0A)T RUR5UR55 UR5HnT RURU5 M! UR5HnT RURU5 M! UR5HnXX5pv[ U5UR URURURUR4n[ U5UR URURURUR4n T RX5 [ U5T RLa&T RURUR5 T "XfRXwR5 M g)a9Return equality of tree pairs. Each parent,children pair define a tree. The parents are assumed equal. Comparing the children dictionaries as such does not work due to comparison by identity and double linkage. We separate comparing string and number attributes from comparing the children of input children. N)r.rZvaluesassertIsparentrHrArrLlinenorClassr\children) parent1 children1parent2 children2obr*o1o2t1t2comparembr s rr'PyclbrTest.test_nested..compares%   Y^^-y~~/? @&&( bii1)&&( bii1) ~~'"B"XrwwBIIr}}T"XrwwBIIr}}T  (8rxx'$$RZZ<KK[[9(r)rQr _create_treerV_nest_function _nest_classr)r rgprztisourceactualrrrrrrrrrexpectedrrs` @@r test_nestedPyclbrTest.test_nesteds& Ir47 aA  "q!7[[D!Q1[ 5   r4A .   r4A . ^^Ba + XXatQbX 9   r4B / ^^Bb" - ^^Bb" -   r4R 0% :0 fdH-rcURnU"SSS9 U"SSS9 [R"5 [R"S[5 U"SSS9 SSS5 U"S S S9 U"S S S9 U"S 5 U"S5 g!,(df  N-=f)Nrandom)Randomrqpickle)partial PickleBufferr# sre_parse)dumpgroupspospdb)Union _ModuleTarget _ScriptTarget _ZipTargetpydoc)inputoutputz email.parserztest.test_pyclbr)riwarningscatch_warnings simplefilterDeprecationWarning)r cms r test_othersPyclbrTest.test_otherss    8K( 878  $ $ &  ! !(,> ? {#< =' L 7/0 > ' &s #A:: B)Nr ) r<rI __qualname____firstlineno__r%r+r1rirvr{rr__static_attributes__r rrrrs.4 # ^:@7B;.zrrc,\rSrSrSrSrSrSrSrg)ReadmoduleTestscJ[RR5Ulgr )rQ_modulescopyrus rsetUpReadmoduleTests.setUps,,. rc.UR[lgr )rrQrus rtearDownReadmoduleTests.tearDowns --rcNUR[[RS5 g)Nz asyncio.foo) assertRaises ImportErrorrQrRrus rtest_dotted_name_not_a_package.ReadmoduleTests.test_dotted_name_not_a_packages +v';';]KrcSnU[R;de[R"U5 UR [ 5 [R "U5 SSS5 SSS5 g!,(df  N=f!,(df  g=f)N doesnotexist)rQrtest_importlib_utiluncacherModuleNotFoundErrorrR)r module_names rtest_module_has_no_spec'ReadmoduleTests.test_module_has_no_specsa$ &//111 ( ( 5""#67$$[186 5776 5s#A>A-A>- A; 7A>> B )rN) r<rIrrrrrrrr rrrrs/(L2rr__main__)__doc__rtextwraprtypesrrrrQunittestrr unittest_maintest.test_importlibr rrtest.support.testcaser rH staticmethodStaticMethodType classmethodr:rrr<r rrrsy  ?? 4;1 \23{>23P?Pf2h20 zOr