bUڈSSKrSSKrSSKJr SSKJr SSKJr SSKrSSK r "SS\R5r \ S:Xa\ R"5 gg)N) list_tests) cpython_only)assert_python_okc^\rSrSr\rSrSrSrU4Sjr Sr U4Sjr Sr S r S rS rS rS rSrSrSrSrSrSr\S5rSrSrSrSrU=r$)ListTest cUR[/5/5 /SQn[U5nURX5 URXL5 UR[S5/5 UR[S5/SQ5 UR[S5/5 UR[S5/SQ5 UR[S[S555/SQ5 [R S :Xa5UR [[[[R S -55 /nURS U55 URU/5 g) N)rspam)spamc3<# UHoS-(dMUv M g7f)r Nr ).0xs 5/opt/alt/python313/lib64/python3.13/test/test_list.py &ListTest.test_basic..s<A!eaas   )r r rir c3&# UHo*v M g7fNr )rys rrr,sQQs) assertEquallist assertTruerangesysmaxsize assertRaises MemoryErrorextend)selfl0_3l0_3_bisrs r test_basicListTest.test_basic s  b2&: ( ,- b2& l+\: b2& f';< <r<<( * ;;* $   k4s{{a7G1H I  Q BcvUR[S5 [/S9 SSS5 g!,(df  g=f)Nzkeyword argumentsequence)assertRaisesRegex TypeErrorr!r)s rtest_keyword_argsListTest.test_keyword_args/s(  # #I/A B " C B Bs * 8c"SS[5nU"SS/5nUR[U5U5 UR[U5SS/5 UR [ 5 U"SS9 SSS5 "SS[5nU"SS/S S 9nUR[U5U5 UR[U5SS/5 URUR S 5 "S S [5nU"SS/S S 9nUR[U5U5 UR[U5SS/5 URUR S 5 g!,(df  N=f) Nc\rSrSrSrg)4ListTest.test_keywords_in_subclass..subclass4r N__name__ __module__ __qualname____firstlineno____static_attributes__r r.rsubclassr94s r.rAr r r r0c,^\rSrSrSU4SjjrSrU=r$)>ListTest.test_keywords_in_subclass..subclass_with_init<c0>[TU]U5 X lgr)super__init__newarg)r)seqrH __class__s rrGGListTest.test_keywords_in_subclass..subclass_with_init.__init__=s %$ r.rHr)r<r=r>r?rGr@ __classcell__rJs@rsubclass_with_initrC<s  % %r.rOr rLc,^\rSrSrSU4SjjrSrU=r$)=ListTest.test_keywords_in_subclass..subclass_with_newEc2>[TU]X5nX#lU$r)rF__new__rH)clsrIrHr)rJs rrTEListTest.test_keywords_in_subclass..subclass_with_new.__new__Fsws0$  r.rLr)r<r=r>r?rTr@rMrNs@rsubclass_with_newrQEs   r.rW)r!assertIstyper r&r3rH)r)rAurOrWs rtest_keywords_in_subclass"ListTest.test_keywords_in_subclass3s$ t  aV  d1gx( a1a&)   y ) b !* % % 1va 0 d1g12 a1a&) 1%   q!fQ / d1g01 a1a&) 1%)* )s 'E Ecr>[TU]5 UR/(+5 URS/5 g)N*)rF test_truthr"r)rJs rr_ListTest.test_truthOs*  B r.c*UR//L5 gr)r"r4s r test_identityListTest.test_identityTs " %r.c>[TU]5 UR[/5S5 UR[S/5S5 UR[/SQ5S5 g)Nrr )rr r r )rFtest_lenr lenr`s rrfListTest.test_lenWsL  R!$ aS1% Y+r.c/SQn[[RS-S-[U5-5nSnSnUR [ [ 4X1U5 UR [ [ 4XAU5 g)Nrrr c X-$rr rbs rmul#ListTest.test_overflow..mul`sae|r.c X-ngrr rns rimul$ListTest.test_overflow..imulasr.)intr$r%rgr&r' OverflowError)r)lstnrprss r test_overflowListTest.test_overflow]sZ QqSX- .# ; 6!D ; 61Er.c4/nXSS&URU/5 gr)r )r)rs rtest_empty_sliceListTest.test_empty_slicees ! Br.cTS/S-nUSS2 UR[U5S5 [RnUR [ [ 45 X- SSS5 UR [ [ 45 X-nSSS5 g!,(df  N7=f!,(df  g=f)NrAr )r rgr$r%r&r'rv)r)rwsizes rtest_list_resize_overflow"ListTest.test_list_resize_overflowjscBh G S1%{{    ]; < J=    ]; < KC= <= < < \rSrSr\U4Sj5rSrg)&ListTest.test_repr_mutate..ObjxcH>TR5 g![a gf=f)Nobj)pop IndexErrormylistsr__repr__/ListTest.test_repr_mutate..Obj.__repr__ys-JJL"s  !!r N)r<r=r>r? staticmethodrr@rsrObjrxs   r.rrz[obj, obj, obj])r#r repr)r)r_rs @rtest_repr_mutateListTest.test_repr_mutatewsC  "'q*A#%* f'89+sA c2^U4SjnU"S5 U"S5 g)Nc~>S/U-n[U5nTRUSSRS/U-5-S-5 g)Nr[z, 0])rr join)rxlrr)s rcheck'ListTest.test_repr_large..checksCaAQA   Qdii **S0 2r.ri@Br )r)rs` rtest_repr_largeListTest.test_repr_larges 2 b  gr.cUR/SQ5n/SQn[[RS-5GHn[ U5n[R "XA4U5n[R "U5upgX'SS&UR[U5[U55 UR[U5U5 [U5 [R "XA4U5n[R "U5upgX'SS&UR[U5[U55 UR[U5USS5 [S[U55Hn[U5 M [R "XA4U5n[R "U5upgX'SS&UR[U5[U55 UR[U5U[U5S5 UR[[U5 [R "XA4U5n[R "U5upgX'SS&UR[U5/5 GM g)Nrjr r ) type2testr#pickleHIGHEST_PROTOCOLiterdumpsloadsr rYr!nextrgr& StopIteration r)origdataprotoitorigditris rtest_iterator_pickleListTest.test_iterator_pickles~~l+'622Q67E$ZF f^U3ALLOEBaD   T"XtF| 4   T"Xt , L f^U3ALLOEBaD   T"XtF| 4   T"XtABx 01c$i(V ) f^U3ALLOEBaD   T"XtF| 4   T"XtCIJ'7 8   mT6 : f^U3ALLOEBaD   T"Xr *?8r.cUR/SQ5n/SQn[[RS-5GH(n[ U5n[R "XA4U5n[R "U5upgX'SS&UR[U5[U55 UR[U5U[U5S- SS25 [U5 [R "XA4U5n[R "U5upgX'SS&UR[U5[U55 UR[U5U[U5S- SS25 [S[U55Hn[U5 M [R "XA4U5n[R "U5upgX'SS&UR[U5[U55 UR[U5/5 UR[[U5 [R "XA4U5n[R "U5upgX'SS&UR[U5/5 GM+ g)Nrjrr r )rr#rrreversedrrr rYr!rgrr&rrs rtest_reversed_pickleListTest.test_reversed_pickles~~l+'622Q67Ed^F f^U3ALLOEBaD   T"XtF| 4   T"XtCIaKOO'< = L f^U3ALLOEBaD   T"XtF| 4   T"XtCIaKOO'< =1c$i(V ) f^U3ALLOEBaD   T"XtF| 4   T"Xr *   mT6 : f^U3ALLOEBaD   T"Xr *?8r.c/SQnS/USS[R2'URUSS[R2S/5 g)N)rr r r rkrr r )r$r%r )r)rs rtest_step_overflowListTest.test_step_overflows> C!.S[[. 1>ckk>*QC0r.c"SS[5nUR[5 SU"SS/5- SSS5 g!,(df  g=f)Nc\rSrSrSrg)*ListTest.test_no_comdat_folding..Lr Nr;r r.rLrstr.r)r r r )r!r&r3)r)rs rtest_no_comdat_foldingListTest.test_no_comdat_foldings5    y ) 1aU8O* ) )s < A c^^^"U4SjS5n"U4SjS5n"U4SjS5nU"5/mU"5/mURTT:H5 U"5/mS/nURTU:H5 g)Nc">\rSrSrU4SjrSrg)9ListTest.test_equal_operator_modifying_operand..Xc0>TR5 [$rclearNotImplemented)r)otherlist2s r__eq__@ListTest.test_equal_operator_modifying_operand..X.__eq__ %%r.r Nr<r=r>r?rr@)rsrXr  & &r.rc">\rSrSrU4SjrSrg)9ListTest.test_equal_operator_modifying_operand..Yc0>TR5 [$rr)r)rlist1s rr@ListTest.test_equal_operator_modifying_operand..Y.__eq__rr.r Nr)rsrYrrr.rc">\rSrSrU4SjrSrg)9ListTest.test_equal_operator_modifying_operand..Zc0>TR5 [$rr)r)rlist3s rr@ListTest.test_equal_operator_modifying_operand..Z.__eq__rr.r Nr)rsrZrrr.rr )r" assertFalse)r)rrrlist4rrrs @@@r%test_equal_operator_modifying_operand.ListTest.test_equal_operator_modifying_operandsg & &  & &  & &  ' %(r.c"SS5nU"5//nUR[5 USU: SSS5 g!,(df  g=f)Nc\rSrSrSrSrg)9ListTest.test_lt_operator_modifying_operand..evilc.UR5 [$rrr)rs r__lt__@ListTest.test_lt_operator_modifying_operand..evil.__lt__s %%r.r N)r<r=r>r?rr@r r.revilr &r.rr)r&r3)r)rrs r"test_lt_operator_modifying_operand+ListTest.test_lt_operator_modifying_operands> & & fXJ   y ) aD1H* ) )s ; A c"SS5n[[S55nU"U5nUR[5 X2SSS2'SSS5 g!,(df  g=f)Nc \rSrSrSrSrSrg)7ListTest.test_list_index_modifing_operand..evili cXlgrrw)r)rws rrG@ListTest.test_list_index_modifing_operand..evil.__init__ sr.c3l# URShvN URR5 gN7fr)rwrr4s r__iter__@ListTest.test_list_index_modifing_operand..evil.__iter__ s%88## $s 42 4rN)r<r=r>r?rGrr@r r.rrr s   !r.rrr)r!r#r& ValueError)r)rrwoperands r test_list_index_modifing_operand)ListTest.test_list_index_modifing_operandsI ! !58ns)   z *"I+ * *s A  Ac S/S-n[R"U5nURU[R"[S/S-555 URU[R"[[ S5555 g)Nrr)r$ getsizeofr r!r#)r)iterable iter_sizes rtest_preallocationListTest.test_preallocations_38MM(+  CMM$sRx.$AB CMM$uRy/$BCr.c^"U4SjS5nU"5/mUR[5 TRT5 SSS5 "SS[5nU"U"5/5mTR T5 U"U"5/5mUR[5 TR T5 SSS5 U"5U"5/mST; U"5U"5/mU"5T; g!,(df  N=f!,(df  NK=f)Nc">\rSrSrU4SjrSrg)3ListTest.test_count_index_remove_crashes..Xi!c0>TR5 [$rr)r)rrws rr:ListTest.test_count_index_remove_crashes..X.__eq__"s %%r.r Nrrsrrr !rr.rc\rSrSrSrSrg)3ListTest.test_count_index_remove_crashes..Li*c$[U5 [$r)strrrs rr:ListTest.test_count_index_remove_crashes..L.__eq__+sE %%r.r Nrr r.rrr*rr.rr )r&rindexr!countremove)r)rrrws @rtest_count_index_remove_crashes(ListTest.test_count_index_remove_crashess & & se   z * IIcN+ & & h #h   z * JJsO+ sACj SsACj s )+ *+ *sCC. C+. C<c[S5HGn/SQn[U5nUHnM URS5 UR[ U5/5 MI g)Nd)r r r rk)r#rappendr r!)r)rrrs rtest_tier2_invalidates_iterator(ListTest.test_tier2_invalidates_iterator=sJsAAaB HHQK   T"Xr * r.ct[R"S5n[SU5un nURUS5 g)NaJ l = [] def lappend(l, x, y): l.append((x, y)) for x in range(3): lappend(l, None, None) try: lappend(list, None, None) except TypeError: pass else: raise AssertionError z-cr)textwrapdedentrr )r)codercrs rtest_deopt_from_append_list$ListTest.test_deopt_from_append_listGs;  $D$/Aq Qr.r )r<r=r>r?r!rr,r5r[r_rcrfryr|rrrrrrrrrrrrrrr"r@rMrNs@rrr sI! F&8 &, F  :"+H"+H1 )2   DD@+  r.r__main__)r$rtestr test.supportrtest.support.script_helperrrunittest CommonTestrr<mainr r.rr+sG %7 P z$$P d  z MMOr.