asda?‰PNG  IHDR ? f ??C1 sRGB ??é gAMA ±? üa pHYs ? ??o¨d GIDATx^íüL”÷e÷Y?a?("Bh?_ò???¢§?q5k?*:t0A-o??¥]VkJ¢M??f?±8\k2íll£1]q?ù???T a bYh@sVddlZddlmZddlmZddlZddlZGdddejZe dkrRe dS)N) list_tests) cpython_onlycseZdZeZddZddZfddZddZfd d Z d d Z d dZ ddZ ddZ ddZddZddZddZeddZddZZS)ListTestcCs|tgggd}t|}||||||u|tdg|tdgd|tdg|tdgd|tddtdDgd tjd kr|ttttjd g}|d d|D||gdS) N)rZspam)spamcss|]}|dr|VqdS)rNr).0xrr*/usr/local/lib/python3.9/test/test_list.py z&ListTest.test_basic.. )rr ircss|] }| VqdSNr)ryrrrr*r) assertEquallist assertTruerangesysmaxsize assertRaises MemoryErrorextend)selfZl0_3Zl0_3_bisrrrr test_basic s"  zListTest.test_basiccCs:|tdtgdWdn1s,0YdS)Nzkeyword argument)Zsequence)ZassertRaisesRegex TypeErrorrr"rrrtest_keyword_args-szListTest.test_keyword_argscs&t|g |dgdS)N*)super test_truthrr% __class__rrr)1s  zListTest.test_truthcCs|ggudSr)rr%rrr test_identity6szListTest.test_identitycsDt|tgd|tdgd|tgdddS)Nrr)rrrr)r(test_lenrlenr%r*rrr-9s zListTest.test_lencCs^gd}ttjddt|}dd}dd}|ttf||||ttf|||dS)NrrrcSs||Srrr brrrmulBrz#ListTest.test_overflow..mulcSs ||9}dSrrr2rrrimulCrz$ListTest.test_overflow..imul)intrrr.rr OverflowError)r"lstnr4r5rrr test_overflow?s zListTest.test_overflowcCsdgd}|dd=|t|ddtjddd}|ttf||Wdn1sf0Y|ttf||9}Wdn1s0YdS)NrArr)rr.tuple __itemsize__rr r7)r"r8sizerrrtest_list_resize_overflowGs  &z"ListTest.test_list_resize_overflowcs fdd}|d|ddS)Ncs6dg|}t|}|dddg|ddS)Nr[z, 0])reprrjoin)r9lr r%rrcheckVs  z'ListTest.test_repr_large..checkri@Br)r"rGrr%rtest_repr_largeTs zListTest.test_repr_largec Cs|gd}gd}ttjdD]v}t|}t||f|}t|\}}||dd<|t|t||t ||t |t||f|}t|\}}||dd<|t|t||t ||ddtdt |D] }t |qt||f|}t|\}}||dd<|t|t||t ||t |d| t t |t||f|}t|\}}||dd<|t |gq$dS)Nr/r r) type2testrpickleHIGHEST_PROTOCOLiterdumpsloadsrtypernextr.r StopIteration r"ZorigdataprotoZitorigditr irrrtest_iterator_pickle^s6     zListTest.test_iterator_picklec Cs|gd}gd}ttjdD]}t|}t||f|}t|\}}||dd<|t|t||t ||t |dddt |t||f|}t|\}}||dd<|t|t||t ||t |dddtdt |D]}t |qt||f|}t|\}}||dd<|t|t||t |g| t t |t||f|}t|\}}||dd<|t |gq$dS)Nr/rIrr)rOrrPrQreversedrSrTrrUrr.rVrrWrXrrrtest_reversed_pickles6 " "   zListTest.test_reversed_picklecCs8gd}dg|ddtj<||ddtjdgdS)N)rrrrr0rrr)rrr)r"r rrrtest_step_overflowszListTest.test_step_overflowcCsNGdddt}|t d|ddgWdn1s@0YdS)Nc@s eZdZdS)z*ListTest.test_no_comdat_folding..LN)__name__ __module__ __qualname__rrrrLrrf)rrr)rrr$)r"rfrrrtest_no_comdat_foldings zListTest.test_no_comdat_foldingcstGfddd}Gfddd}Gfddd}|g|g|k|gdg}||kdS)NcseZdZfddZdS)z9ListTest.test_equal_operator_modifying_operand..Xcs tSrclearNotImplementedr"otherlist2rr__eq__sz@ListTest.test_equal_operator_modifying_operand..X.__eq__NrcrdrerorrmrrXsrqcseZdZfddZdS)z9ListTest.test_equal_operator_modifying_operand..Ycs tSrrhrklist1rrrosz@ListTest.test_equal_operator_modifying_operand..Y.__eq__NrprrrrrYsrtcseZdZfddZdS)z9ListTest.test_equal_operator_modifying_operand..Zcs tSrrhrklist3rrrosz@ListTest.test_equal_operator_modifying_operand..Z.__eq__NrprrurrZsrwr)rZ assertFalse)r"rqrtrwZlist4r)rsrnrvr%test_equal_operator_modifying_operandsz.ListTest.test_equal_operator_modifying_operandcCsNdgd}t|}||ttdgd||tttddS)Nrr)r getsizeofrrr)r"iterableZ iter_sizerrrtest_preallocations  zListTest.test_preallocationcsGfddd}|g|tWdn1sD0YGdddt}||g||g|tWdn1s0Y||gdv||g|vdS)NcseZdZfddZdS)z3ListTest.test_count_index_remove_crashes..Xcs tSrrhrkr8rrrosz:ListTest.test_count_index_remove_crashes..X.__eq__Nrprr|rrrqsrqc@seZdZddZdS)z3ListTest.test_count_index_remove_crashes..LcSs t|tSr)strrjrkrrrrosz:ListTest.test_count_index_remove_crashes..L.__eq__Nrprrrrrfsrfr)r ValueErrorindexrcountremove)r"rqrfrr|rtest_count_index_remove_crashess (    (  z(ListTest.test_count_index_remove_crashes)rcrdrerrOr#r&r)r,r-r:r@rHr^rarbrgrxrr{r __classcell__rrr*rrs"#    $$ r__main__) rtestrZ test.supportrrPZunittestZ CommonTestrrcmainrrrrs  o