python (3.11.7)

(root)/
lib/
python3.11/
test/
__pycache__/
test_iterlen.cpython-311.opt-2.pyc

eb	ddlZddlmZddlmZddlmZdZGddZGdd	eZ	Gd
deej
ZGdd
eej
ZGddeej
Z
Gddeej
ZGdde	ej
ZGdde	ej
ZGdde	ej
ZGdde	ej
ZGdde	ej
ZGdde	ej
ZGddeej
ZGd d!eej
ZGd"d#eZGd$d%eZGd&d'eZGd(d)ej
Zed*krejdSdS)+N)repeat)deque)length_hint
ceZdZdZdS)TestInvariantWithoutMutationsc|j}ttdtdzD]4}|t||t
|5|t|d|tt||t|ddSNr)	itreversedrangenassertEqualrnextassertRaises
StopIteration)selfris   E/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/test/test_iterlen.pytest_invariantz,TestInvariantWithoutMutations.test_invariant6s
W%1Q3--((		A[__a000HHHHR!,,,-r222R!,,,,,N)__name__
__module____qualname__rrrrr4s#-----rrceZdZdZdS)TestTemporarilyImmutablec|j}|t|tt	||t|tdz
||tt||t|ddSr
)rrrrrmutaterRuntimeError)rrs  rtest_immutable_during_iterationz8TestTemporarilyImmutable.test_immutable_during_iterationAsWR!,,,RR!A#...


,b111R!,,,,,rN)rrrr"rrrrr?s#
-
-
-
-
-rrceZdZdZdS)
TestRepeatc:tdt|_dSN)rrrrs rsetUpzTestRepeat.setUpQsq//rNrrrr(rrrr$r$Os#"""""rr$ceZdZdZdS)
TestXrangecRttt|_dSr&iterrrrr's rr(zTestXrange.setUpVuQxx..rNr)rrrr+r+Ts#!!!!!rr+ceZdZdZdS)TestXrangeCustomReversedcRttt|_dSr&r
rrrr's rr(zTestXrangeCustomReversed.setUp[588$$rNr)rrrr1r1Ys#%%%%%rr1ceZdZdZdS)	TestTuplecltttt|_dSr&)r.tuplerrrr's rr(zTestTuple.setUp`s!uU1XX''rNr)rrrr6r6^s#(((((rr6ceZdZdZdS)	TestDequecttt}t||_|j|_dSr&)rrrr.rpopr rds  rr(zTestDeque.setUpgs-%((OOq''erNr)rrrr:r:e#rr:ceZdZdZdS)TestDequeReversedcttt}t||_|j|_dSr&)rrrr
rr<r r=s  rr(zTestDequeReversed.setUpns-%((OO1++erNr)rrrrArAlr?rrAceZdZdZdS)TestDictKeyscttt}t	||_|j|_dSr&)dictfromkeysrrr.rpopitemr r=s  rr(zTestDictKeys.setUpus3MM%((##q''irNr)rrrrDrDs#     rrDceZdZdZdS)
TestDictItemscttt}t	||_|j|_dSr&)	rFrGrrr.itemsrrHr r=s  rr(zTestDictItems.setUp|s;MM%((##qwwyy//irNr)rrrrKrKzrIrrKceZdZdZdS)TestDictValuescttt}t	||_|j|_dSr&)	rFrGrrr.valuesrrHr r=s  rr(zTestDictValues.setUps=MM%((##qxxzz""irNr)rrrrOrOrIrrOceZdZdZdS)TestSetcttt}t||_|j|_dSr&)setrrr.rr<r r=s  rr(z
TestSet.setUps-aMMq''erNr)rrrrSrSr?rrSceZdZdZdZdS)TestListcRttt|_dSr&r-r's rr(zTestList.setUpr/rcttt}t|}t	|t	||t
|tdz
|t|t
|tdz
g|dd<|t
|d|t|g|td|t
|ddSNrr)	listrrr.rrrappendextendrr>rs   r
test_mutationzTestList.test_mutationsqNN
!WWRRR!a%000	R!a%000!""R!,,,b2&&&	rR!,,,,,rNrrrr(rarrrrWrWs2!!!-----rrWceZdZdZdZdS)TestListReversedcRttt|_dSr&r3r's rr(zTestListReversed.setUpr4rcttt}t|}t	|t	||t
|tdz
|t|t
|tdz
g|dd<|t
|d|t|g|td|t
|ddSrZ)	r]rrr
rrrr^r_r`s   rrazTestListReversed.test_mutationsqNN
a[[RRR!a%000	R!a%000!""R!,,,b2&&&	rR!,,,,,rNrbrrrrdrds2%%%-----rrdceZdZdZdZdS)BadLenc:ttdSNrr.rr's r__iter__zBadLen.__iter__E"IIrc tdNhellor!r's r__len__zBadLen.__len__7###rN)rrrrlrrrrrrhrh2$$$$$rrhceZdZdZdZdS)
BadLengthHintc:ttdSrjrkr's rrlzBadLengthHint.__iter__rmrc tdrorqr's r__length_hint__zBadLengthHint.__length_hint__rsrNrrrrlryrrrrvrvrtrrvceZdZdZdZdS)NoneLengthHintc:ttdSrjrkr's rrlzNoneLengthHint.__iter__rmrctSr&)NotImplementedr's rryzNoneLengthHint.__length_hint__srNrzrrrr|r|s2rr|ceZdZdZdZdS)TestLengthHintExceptionscZ|ttt|ttt	|tgjt|tgjt	t
td}|t|jt|t|jt	dSrj)rr!r]rhrvr_	bytearrayr)rbs  rtest_issue1242657z*TestLengthHintExceptions.test_issue1242657s,fhh777,moo>>>,	688<<<,	=??CCCeBii  ,&((;;;,-//BBBBBrc|ttttddSrj)rr]r|rr's rtest_invalid_hintz*TestLengthHintExceptions.test_invalid_hints8n..//eBiiAAAAArN)rrrrrrrrrrs:CCCBBBBBrr__main__)unittest	itertoolsrcollectionsroperatorrrrrTestCaser$r+r1r6r:rArDrKrOrSrWrdobjectrhrvr|rrmainrrr<module>rs)V      	-	-	-	-	-	-	-	------<--- """"".0A"""
!!!!!.0A!!!
%%%%%<h>O%%%
(((((-x/@(((((*;0(2C     +X->        ,h.?        -x/@   &(9-----,h.?---(-----4h6G---,$$$$$V$$$$$$$$F$$$V
B
B
B
B
Bx0
B
B
B zHMOOOOOr