6v8SSKJr SSKJrJrJr SSKJr SSKrSSK r SSK r SSK r SSK r SSK r SSKrSSKrSSKr"SS5r"SS\ R&\5r"S S \ R&\5r"S S \ R&\5r"S S\ R&5r"SS\ R&5r"SS\ R&\5r"SS\ R&\5r"SS\ R&5rSr\ R:S:aSOSr"SS5r\ R@"\\ R::S5"SS\ R&55r!S r""S!S"\ R&\5r#"S#S$\ R&5r$"S%S&\ R&\5r%\RL\ RN"\S'5"S(S)\ R&\555r(\)S*:Xa\ RT"5 gg!\a SrGNf=f)+)support)is_apple_mobile os_helperrequires_debug_ranges)assert_python_okNc\rSrSrSrSrg) HelperMixincd[R"[R"U/UQ765nURX5 [ [ R S5n[R"X/UQ76 SSS5 [ [ R S5n[R"U5nSSS5 URX5 [ R"[ R 5 g!,(df  N}=f!,(df  NU=f![ R"[ R 5 f=f)Nwbrb) marshalloadsdumps assertEqualopenrTESTFNdumploadunlink)selfsampleextranewfs 8/opt/alt/python313/lib64/python3.13/test/test_marshal.pyhelperHelperMixin.helpersmmGMM&959: % /i&&- V//.i&&-ll1o.   V )   Y-- . .---   Y-- .s;D C'0"D C8)D ' C51D 8 DD &D/N)__name__ __module__ __qualname____firstlineno__r__static_attributes__rrr r s /r%r c&\rSrSrSrSrSrSrg) IntTestCasec[RS-nU(a,U*U4HnURU5 M US- nU(aM+gg)N)sysmaxsizer)rnexpecteds r test_intsIntTestCase.test_ints s? KK1 RG H%$QAar%c 6SnU*S- nXU*US- *4HcnU(dM S[RUSSSS9-n[R"U5nUR X55 US:XaS nOUS-nU(aMWMe [R"S 5nUR US 5 [R"S 5nUR US 5 [R"S5nUR US5 [R"S5nUR US5 g)Nlr+IlittleT)signedrs IܺvT2l\u1Qs I#Egl\u1Qs I*;L]nlTv0ur{s Iijl Tv0ur{)intto_bytesrrr)rmaxint64minint64basesgots r test_int64IntTestCase.test_int64(s 9Q; X]3CCD$3<<a$<GGmmA&  +2:DQJD$Dmm@A 01mm@A 12mm@A 01mm@A 12r%c8SHnURU5 M g)N)TFr)rbs r test_boolIntTestCase.test_bool?sA KKNr%rN)r r!r"r#r0r?rDr$rr%rr'r's3.r%r'c\rSrSrSrSrg) FloatTestCaseCcVSn[RS-nX!:a2U*U4HnUR[U55 M US-nX!:aM2Sn[R "US5n[R "U5nURXF5 [R "US5n[R "U5nURXF5 [RS-nX!:aGU*U4H1n[U5nURU5 URUS5 M3 US-nX!:aMFgg)Ng}:g6ҫsgS:^@gr*r+gZ1% )r,r-rfloatrrrr)rsmallr.r/rr=r>s r test_floatsFloatTestCase.test_floatsDs KK' !iRG E(O,$ MAi  MM!Q mmA  MM!Q mmA  KK( "iRG(O A Aq!$ MA ir%rN)r r!r"r#rLr$rr%rrGrGCsr%rGc&\rSrSrSrSrSrSrg)StringTestCase^cSSSSS-4H<nUR[R"[R"U555 M> gN Andrè Previnabc ')rrrrrr=s r test_unicodeStringTestCase.test_unicode_s8'E :A KK gmmA&67 8;r%cFSSSSS-4HnURU5 M grRrBrXs r test_stringStringTestCase.test_stringcs%'E :A KKN;r%cFSSSSS-4HnURU5 M g)Nr%s Andr Previnabc rWrBrXs r test_bytesStringTestCase.test_bytesgs%)64:>A KKN?r%rN)r r!r"r#rYr\rar$rr%rrOrO^s9r%rOc\rSrSrSrSrg)ExceptionTestCasekc[R"[R"[55nUR [U5 gN)rrr StopIterationr)rrs rtest_exceptions!ExceptionTestCase.test_exceptionsls)mmGMM-89 ,r%rN)r r!r"r#rir$rr%rrdrdks-r%rdcj\rSrSrSrSrSrSr\"5S5r \ RS5r Sr g ) CodeTestCasepc[RRn[R"[R "U55nUR X5 grg)rdri__code__rrrr)rcors r test_codeCodeTestCase.test_codeqs8  . . 7 7mmGMM"-. !r%c[R"5n[RR4U-n[ R "[ R"U55 grg)rexceeds_recursion_limitrdrirorrr)rcountcodess rtest_many_codeobjects"CodeTestCase.test_many_codeobjectsvs@//1"22;;=E gmmE*+r%c[SSS5n[SSS5n[R"[R"X455upUR UR S5 UR UR S5 g)Nxf1execyf2)compilerrrr co_filename)rco1co2s rtest_different_filenames%CodeTestCase.test_different_filenames}sac4(c4(==z!:; $/ $/r%c6SS14/0n[R"USS9nUR[R"USS9U5 [R "5n[R "XSS9 URS5 UR[R"USS9U5 [RRnSUS14/0n[R"USS9nUR[R"USS9U5 UR[5 [R"USS9 SSS5 UR[5 [R"USS9 SSS5 [R "U[R "5SS9 UR[R"[R "U5SS9U5 UR[5 [R "U[R "5SS9 SSS5 UR[5 [R"[R "U5SS9 SSS5 g!,(df  GN3=f!,(df  GN=f!,(df  Nz=f!,(df  g=f)NarF) allow_codeT)rrrrioBytesIOrseekrrdriro assertRaises ValueError)rdatarrrps rtest_no_allow_codeCodeTestCase.test_no_allow_codessfX}}Te4 t>E JJL T/ q  aE:DA  . . 7 7Awj\"}}Td3 t=tD   z * MM$5 1+   z * MM$5 1+  T2::+   z * LLD)e <+ *+ * * * + * * *s0II'*I9"*J  I$' I69 J Jc[RRn[R"S5n[ [ RS5n[R"X5 SSS5 [SSSU[ R5 [ R"[ R5 g!,(df  NP=f![ R"[ R5 f=f)Na import sys import marshal with open(sys.argv[1], 'rb') as f: co = marshal.load(f) positions = list(co.co_positions()) assert positions[0][2] is None assert positions[0][3] is None r z-Xno_debug_ranges-c) rdrirotextwrapdedentrrrrrrr)rrpcoders r+test_minimal_linetable_with_no_debug_ranges8CodeTestCase.test_minimal_linetable_with_no_debug_rangess . . 7 7   /i&&- R#. T#4!4)9)9 ;   Y-- . .-   Y-- .s#B> B-#%B>- B;7B>>&C$c*Sn[USS5n[R"[R"U55nURHJn[ U[ R5(dM$URURUR5 ML g)Nzdef f(): pass def g(): passmyfiler|) rrrr co_consts isinstancetypesCodeTypeassertIsr)rr=rpobjs rtest_same_filename_used$CodeTestCase.test_same_filename_usedsa . Q& ) ]]7==, -< r%rN)r r!r"r#rqrwrrrrr cpython_onlyrr$rr%rrlrlpsG" ,0=4//. ??r%rlc D\rSrSrSSSSS/SSS S .rS rS rS rSrSr g)ContainerTestCasezfoo@bar.baz.spamgHzns@r*.zyx.41) rrrrrrrrrrFrT)astringafloatanint ashortlongalistatupleabooleanaunicodec:URUR5 grg)rdrs r test_dictContainerTestCase.test_dicts DFFr%chUR[URR555 grg)rlistritemsrs r test_listContainerTestCase.test_lists D()r%chUR[URR555 grg)rtuplerkeysrs r test_tupleContainerTestCase.test_tuples E$&&++-()r%c[[4H2nURU"URR 555 M4 grg)set frozensetrrr)r constructors r test_setsContainerTestCase.test_setss,+K KK DFFKKM2 3,r%rN) r r!r"r#rrrrrr$rr%rrrs7&+"& A**4r%rc&\rSrSrSrSrSrSrg)BufferTestCasec[S5nURU5 [R"[R"U55nUR [ U5[5 gNr_) bytearrayrrrrrtypebytesrrCrs rtest_bytearrayBufferTestCase.test_bytearraysB f  AmmGMM!,- cE*r%c[S5nURU5 [R"[R"U55nUR [ U5[5 gr) memoryviewrrrrrrrrs rtest_memoryviewBufferTestCase.test_memoryviewsB v  AmmGMM!,- cE*r%c[R"SS5n[R"[R"U55nUR US5 g)NBr_)arrayrrrr)rrrs r test_arrayBufferTestCase.test_arrays9 KKV $mmGMM!,- f%r%rN)r r!r"r#rrrr$rr%rrrs+ + &r%rch\rSrSrSrSrSrSrSrSr Sr S r S r S r S rS rSrSrSrg) BugsTestCasec8[R"S/S-5 g)N)rrrs rtest_bug_5888452BugsTestCase.test_bug_5888452s sedl#r%cUR[[RS5 UR[[RS5 UR[[R[R"SS-5SS5 g)N0fr*Ar7)r Exceptionrrrrs rtest_patch_873224BugsTestCase.test_patch_873224sX )W]]D9 )W]]D9 )W]]GMM!R%4H"4MNr%cUR[R"[R"SS55S5 UR[R"[R"SS55S5 g)Nrr+)rrrrrs rtest_version_argument"BugsTestCase.test_version_argumentsJ w}}Q':;Q? w}}Q':;Q?r%c[S5H&n[U/5n[R"U5 M( g![a M8f=f)N)rangerrrr)rics r test_fuzzBugsTestCase.test_fuzzsBsAqc A  a   s7 AAcX^SnU"S[R5 U4SjnU"SU5 g)NcU"SU-S-5 U"SU-S-5 U"SU-S-5 U"SU-S-SU--5 U"SU-S-5 g)Ns)Ns(s[s{Nrs>r)Nchecks r run_tests4BugsTestCase.test_loads_recursion..run_testssf (Q,% & &*T1 2 &*T1 2 %!)d"TAX- . &*T1 2r%dcP>TR[[RU5 grgrrrr)r=rs rr0BugsTestCase.test_loads_recursion..checks   j'-- ;r%r)rr)rrrs` rtest_loads_recursion!BugsTestCase.test_loads_recursions' 3 #w}}% <%r%c/=p[RS:XaSnO$[RS:Xd [(aSnOSn[ US- 5HnUR S/5 USnM [R"U5n[R"U5nUR[U5[U55 UR[US5[US55 UR[US5[US55 UR S/5 UR[[RU5 g) Nntrwasiiir*rr7)osnamer,platformrrappendrrrrlenrr)rheadlastMAX_MARSHAL_STACK_DEPTHrrnew_heads rtest_recursion_limit!BugsTestCase.test_recursion_limits 77d?&* # \\V #&* #&* #.23A KK 8D4 }}T"==& XD 2 Xa[)3tAw<8 Xb\*CRM: QC *gmmT:r%c[[[[[[ [ [4H;n[SU405nUR[[RU"55 M= g)Nsubtyp) r8rJcomplexrrdictrrrrrrr)rtyprs rtest_exact_type_match"BugsTestCase.test_exact_type_match4sJ dCKC(SFB/F   j'-- B Lr%cP[S5nSU-n[R"U5 g)Ng.ArU)r8rr)rsize testStrings rtest_large_marshalBugsTestCase.test_large_marshalAs 3xT\  j!r%cRSnUR[[RU5 g)Ns lr)rinvalid_strings rtest_invalid_longsBugsTestCase.test_invalid_longsFs= *gmm^Dr%c LSSSSSSSS/44nS GHFn[U5n/n[[RS 5nUHPn[R "Xe5 U(aUR U5 URUR55 MR SSS5 [[RS 5n[U5HeupvURU[R"U55 U(aURU5 URXGUR55 Mg SSS5 [R"[R5 GMI g!,(df  N=f!,(df  NI=f![R"[R5 f=f) Nr+rUsdef?r*rrCc)r%s0123r r )rrrrrrwritertell enumeraterrreadr)rr interleavedilen positionsrrrs rtest_multiple_dumps_and_loads*BugsTestCase.test_multiple_dumps_and_loadsKs35&#3d '<=)K{#DI 3)**D1Q! Q*GGK0!((2 "2 )**D1Q )$((GLLO<FF4L((qvvx@ !02  !1!12#*21 21  !1!12s<E=AE"E=4A5E,)E= E) %E=, E: 6E==&F#cRSnUR[[RU5 g)NT)r TypeErrorrr)runicode_strings r!test_loads_reject_unicode_strings.BugsTestCase.test_loads_reject_unicode_stringscs )W]]NCr%c "SS[R5nSHBnUR[[R U"[R "U555 MD g)Nc(^\rSrSrU4SjrSrU=r$)/BugsTestCase.test_bad_reader..BadReaderiicB>[TU]U5nUb US:aUS- nU$)Ni@B)superreadinto)rbufr. __class__s rr68BugsTestCase.test_bad_reader..BadReader.readintojs+G$S)=QUJAr%r)r r!r"r#r6r$ __classcell__)r8s@r BadReaderr2is   r%r;)ry?s 0123456789 0123456789)rrrrrrr)rr;values rtest_bad_readerBugsTestCase.test_bad_readerhsE    fnv siphash24rzprint()PYTHONHASHSEED01z$import marshal; print(marshal.dumps(z)))subTestr, hash_info algorithmrassertNotEqualr) rkindelementsr=args_repr_0repr_1dump_0dump_1s rtest_deterministic_sets$BugsTestCase.test_deterministic_setsxs)D fBxj+\\!_ }}..2FF $qcm4'7'Rc'R 1'7'Rc'R 1++F; $H2"NOD#3T#N##NLAq#3T#N##NLAq$$V4%_ )%_s B B>> C rN)r r!r"r#rrrrrr rrrr(r.r>rDrYr$rr%rrrsN$O @  &;8 C" E 30D ?C 5r%rllr4r4c\rSrSrSrSrg) NullWritericgrgrrXs rr!NullWriter.writes r%rN)r r!r"r#r!r$rr%rr\r\s r%r\z!test cannot run on 32-bit systemsc\rSrSrSr\R "\SSS9S5r\R "\SSS9S5r \R "\\ S-SS9S 5r \R "\\ S-SS9S 5r \R "\\ S -\ R"\S- 5-SS9S 5r\R "\\ S -\ R"\S- 5-SS9S 5r\R "\SSS9S5rSrg)LargeValuesTestCaseic`UR[[RU[ 55 grg)rrrrr\)rrs rcheck_unmarshallable(LargeValuesTestCase.check_unmarshallables *gllD*,Gr%r*F)rmemusedry_runc,URSU-5 g)Nxrbrrs rraLargeValuesTestCase.test_bytess !!$+.r%c,URSU-5 g)Nrzrhris rtest_strLargeValuesTestCase.test_strs !!#*-r%r+c,URSU-5 g)Nrgrhris rrLargeValuesTestCase.test_tuples !!'D.1r%c.URS/U-5 grgrhris rrLargeValuesTestCase.test_lists !!4&4-0r% cJUR[[U555 grg)rbrrris rtest_setLargeValuesTestCase.test_sets !!#eDk"23r%cJUR[[U555 grg)rbrrris rtest_frozenset"LargeValuesTestCase.test_frozensets !!)E$K"89r%c8UR[U55 grg)rbrris rr"LargeValuesTestCase.test_bytearrays !!)D/2r%rN)r r!r"r#rbr bigmemtest LARGE_SIZErarl pointer_sizerrr, getsizeofrtrwrr$rr%rr`r`s@H Z5A/B/ Z5A.B. Z q0@%P2Q2 Z q0@%P1Q1 Z?S]]:a<%@@44 Z?S]]:a<%@@:: Z5A3B3r%r`ch[U5U;agUR[U55 [U[[[ [ 45(aUHn[X5 M OD[U[5(a/UR5Hup4[X5 [X5 M [U5$)z&Collect object ids seen in a structureN) idaddrrrrrCollectObjectIDsrrr)idsrekvs rrrs #w#~GGBsG#eS)455A S $ C  IIKDA S $ S $  s8Or%c~\rSrSrSSSS\"SS154rSSjrSrSrS r S r S r S r S r SrSrSrSrSrg)InstancingTestCasei{獗n?rU)rrUchX4n[[5U5n[S[RS-5HRn[R "XF5n[[5[R "U55nURX5 MT U(d[R "US5n [[5[R "U 55n URX5 U(d%UR[U 5[W55 gUR[U 5[W55 gg)Nr+r*) rrrrversionrrr assertGreaterrassertGreaterEqual) rrsample recursivesimplern0rs3n3s2n2s rhelper3InstancingTestCase.helper3s# ceV ,q'//A-.Av)B!#%r):;B   R $ /vq)B!#%r):;B   r &""3r7CG4''BR9r%cJSnURU5 URUSS9 g)NiT)rrr)rintobjs rtestIntInstancingTestCase.testInts# F VD )r%cLSnURU5 URU5 g)Nrr)rfloatobjs r testFloatInstancingTestCase.testFloats H Xr%cLSnURU5 URU5 g)Nabcdeabcdeabcder)rstrobjs rtestStrInstancingTestCase.testStrs F Vr%cLSnURU5 URU5 g)Nsabcdeabcdeabcder)rbytesobjs r testBytesInstancingTestCase.testBytess H Xr%ctURH(nX/nURU5 URU5 M* grgrrr)rrlistobjs rtestListInstancingTestCase.testLists/99CjG KK LL !r%ctURH(nX4nURU5 URU5 M* grgr)rrtupleobjs r testTupleInstancingTestCase.testTuples/99CzH KK ! LL "r%c~URH-nUS4US41nURU5 URU5 M/ gNr+r*r)rrsetobjs rtestSetInstancingTestCase.testSet s:99CAha)F KK  LL r%cURH6n[US4US415nURU5 URU5 M8 gr)rrrr)rr frozensetobjs r testFrozenSet InstancingTestCase.testFrozenSets?99C$sAha%9:L KK % LL &r%c|URH,nSUSXS0nURU5 URU5 M. g)NrAgoodbyer)rrdictobjs rtestDictInstancingTestCase.testDicts899CY'BG KK LL !r%c[[S5nUR5nSSS5 [RS5(a[ W[S5nUR W5 UR U5 g!,(df  N\=fNr z.pyr|)r__file__r$endswithrrr)rrrs r testModuleInstancingTestCase.testModules^ (D !Q668D"   U # #462D D T " !s A88 BcSnSUSXS0nX"S'URUSS9 X/nURU5 URUSS9 g)NrrArrT)r)rr)rrrls r testRecursion InstancingTestCase.testRecursion%sP c9c 8&  Q$ ' J   Q$ 'r%rN)FF)r r!r"r#rrrrrrrrrrrrrrr$rr%rrrsW  ie .E FD:4*    " # ! ' " (r%rc2\rSrSrSrSrSrSrSrSr g) CompatibilityTestCasei.c([[S5nUR5nSSS5 [RS5(a[ W[S5n[ R "WU5n[ R"U5 g!,(df  Ng=fr)rrr$rrrrr)rrrrrs r_testCompatibilityTestCase._test/sb (D !Q668D"   U # #462D}}T7+ d " !s B Bc&URS5 g)Nrrrs rtest0To3CompatibilityTestCase.test0To37  1 r%c&URS5 g)Nr+rrs rtest1To3CompatibilityTestCase.test1To3:rr%c&URS5 gNr*rrs rtest2To3CompatibilityTestCase.test2To3=rr%c&URS5 g)Nrrrs rtest3To3CompatibilityTestCase.test3To3@rr%rN) r r!r"r#rrrrrr$rr%rrr.sr%rcH\rSrSrSr\R "\5rSrSrSr g)InterningTestCaseiCzthis is an interned stringcr[R"[R"UR55nUR XR5 UR [ U5[ UR55 [ R"U5nUR [ U5[ U55 grg)rrrrrrr,internrr=rs r testInternInterningTestCase.testInternGsp MM'-- 4 5 KK( A4;;0 ZZ] BA'r%ct[R"[R"URS55nUR XR5 UR [ U5[ UR55 [R"U5nUR [ U5[ U55 gr) rrrrrrPrr,rrs r testNoInternInterningTestCase.testNoInternNsr MM'-- Q7 8 KK( BqE2dkk?3 ZZ] BrFBqE*r%rN) r r!r"r#rr,rrrr$rr%rrrCs )F ZZ F(+r%rzrequires _testcapic8\rSrSrSrSrSrSrSrSr Sr g ) CAPI_TestCaseiUc[[RS-5Hn[R"S[ R U5 [[ R S5nUR5nSSS5 [ R"[ R 5 URWS5 M g!,(df  NI=f)Nr+xV4r sxV4) rrr _testcapipymarshal_write_long_to_filerrrr$rr)rrrrs rtest_write_long_to_file%CAPI_TestCase.test_write_long_to_fileYsw*+A  2 2:y?O?OQR Si&&-vvx.   Y-- .   T#6 7 ,--s B44 C cSSSSSSS-4n[[RS-5Hn[R"U[ R U5 [[ R S 5nUR5nSSS5 [ R"[ R 5 UR[R"W5U5 M g!,(df  N]=f) N€r_rF@@ @z long line rr+r ) rrrrpymarshal_write_object_to_filerrrr$rrr)rrrrrs rtest_write_object_to_file'CAPI_TestCase.test_write_object_to_fileasdD,t2CDw*+A  4 4S):J:JA Ni&&-vvx.   Y-- .   W]]40# 6 ,--s +C C! c[[RS5nURS5 SSS5 [R "[R5up#[R "[R5 URUS5 URUS5 [[RS5nURS5 SSS5 UR[5 [R "[R5 SSS5 [R "[R5 g!,(df  GN=f!,(df  N=f!,(df  NV=f)Nr s4xxxxi4r*) rrrr!rpymarshal_read_short_from_filerrrrCrrrps rtest_read_short_from_file'CAPI_TestCase.test_read_short_from_filejs )""D )Q GGO $*77 8H8HI))* F# A )""D )Q GGG *   x (  4 4Y5E5E F)))** )* ) ( (#D>=E,%E!> E  E! E/c[[RS5nURS5 SSS5 [R "[R5up#[R "[R5 URUS5 URUS5 [[RS5nURS5 SSS5 UR[5 [R "[R5 SSS5 [R "[R5 g!,(df  GN=f!,(df  N=f!,(df  NV=f)Nr sxV4xxxxrr4sV4) rrrr!rpymarshal_read_long_from_filerrrrCrs rtest_read_long_from_file&CAPI_TestCase.test_read_long_from_filexs )""D )Q GG+ ,*66y7G7GH))* J' A )""D )Q GGO $*   x (  3 3I4D4D E)))** )* ) ( (rcDSn[[RS-5GHIn[R"X5n[ [ R S5nURUS-5 SSS5 [R"[ R 5upV[ R"[ R 5 URXQ5 [ [ R S5nURUSS5 SSS5 UR[5 [R"[ R 5 SSS5 [ R"[ R 5 GML g!,(df  GN =f!,(df  N=f!,(df  N[=fN)rr_rrrr+r sxxxx)rrrrrrrr!r$pymarshal_read_last_object_from_filerrrrCrrrrrrrs rtest_read_last_object_from_file-CAPI_TestCase.test_read_last_object_from_files 1w*+A==(Di&&-w'.AA)BRBRSDA   Y-- .   Q $i&&-Ra!.""8,>>y?O?OP-   Y-- .,-- .-,,s$E.%F%F. E= F  F czSn[[RS-5GHdn[R"X5n[ [ R S5nURUS-5 SSS5 [R"[ R 5upV[ R"[ R 5 URXQ5 URU[U55 [ [ R S5nURUSS5 SSS5 UR[5 [R"[ R 5 SSS5 [ R"[ R 5 GMg g!,(df  GN(=f!,(df  N=f!,(df  N[=fr)rrrrrrrr!rpymarshal_read_object_from_filerrrrrCr s rtest_read_object_from_file(CAPI_TestCase.test_read_object_from_files1w*+A==(Di&&-w'.<rsJJ7    / /"(##["HH%%{6 X&& -))- M?8$$M?^4));42&X&& &(f58$$f5P KK*,q!    ckk)+NO"3(++"3P"3H ^(**K^(@H--*+));+$  Y 45N/H%%{N/6N/b z MMOsIsG##G/.G/