python (3.12.0)

(root)/
lib/
python3.12/
test/
__pycache__/
test_iterlen.cpython-312.opt-2.pyc

Αeb
	ddlZddlmZddlmZddlmZdZGddZGdd	eZ	Gd
deejZGdd
eejZGddeejZ
GddeejZGdde	ejZGdde	ejZGdde	ejZGdde	ejZGdde	ejZGdde	ejZGddeejZGd d!eejZGd"d#eZGd$d%eZGd&d'eZGd(d)ejZed*k(rej:yy)+N)repeat)deque)length_hint
ceZdZdZy)TestInvariantWithoutMutationscL|j}ttdtdzD](}|j	t||t
|*|j	t|d|jtt||j	t|dyNr)	itreversedrangenassertEqualrnextassertRaises
StopIteration)selfris   E/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/test/test_iterlen.pytest_invariantz,TestInvariantWithoutMutations.test_invariant6s
WW%1Q3-(	A[_a0H		
R!,-r2R!,N)__name__
__module____qualname__rrrrr4s-rrceZdZdZy)TestTemporarilyImmutablec@|j}|jt|tt	||jt|tdz
|j|j
tt||jt|dyr
)rrrrrmutaterRuntimeError)rrs  rtest_immutable_during_iterationz8TestTemporarilyImmutable.test_immutable_during_iterationAsoWWR!,RR!A#.
,b1R!,rN)rrrr"rrrrr?s
-rrceZdZdZy)
TestRepeatc.tdt|_yN)rrrrs rsetUpzTestRepeat.setUpQsq/rNrrrr(rrrr$r$Os"rr$ceZdZdZy)
TestXrangec>ttt|_yr&iterrrrr's rr(zTestXrange.setUpVuQx.rNr)rrrr+r+Ts!rr+ceZdZdZy)TestXrangeCustomReversedc>ttt|_yr&r
rrrr's rr(zTestXrangeCustomReversed.setUp[58$rNr)rrrr1r1Ys%rr1ceZdZdZy)	TestTuplecPtttt|_yr&)r.tuplerrrr's rr(zTestTuple.setUp`suU1X'rNr)rrrr6r6^s(rr6ceZdZdZy)	TestDequecvttt}t||_|j
|_yr&)rrrr.rpopr rds  rr(zTestDeque.setUpgs%%(Oq'eerNr)rrrr:r:err:ceZdZdZy)TestDequeReversedcvttt}t||_|j
|_yr&)rrrr
rr<r r=s  rr(zTestDequeReversed.setUpns%%(O1+eerNr)rrrrArAlr?rrAceZdZdZy)TestDictKeysctjtt}t	||_|j|_yr&)dictfromkeysrrr.rpopitemr r=s  rr(zTestDictKeys.setUpus*MM%(#q'iirNr)rrrrDrDs rrDceZdZdZy)
TestDictItemsctjtt}t	|j|_|j|_yr&)	rFrGrrr.itemsrrHr r=s  rr(zTestDictItems.setUp|s0MM%(#qwwy/iirNr)rrrrKrKzrIrrKceZdZdZy)TestDictValuesctjtt}t	|j|_|j|_yr&)	rFrGrrr.valuesrrHr r=s  rr(zTestDictValues.setUps1MM%(#qxxz"iirNr)rrrrOrOrIrrOceZdZdZy)TestSetcvttt}t||_|j
|_yr&)setrrr.rr<r r=s  rr(z
TestSet.setUps%aMq'eerNr)rrrrSrSr?rrSceZdZdZdZy)TestListc>ttt|_yr&r-r's rr(zTestList.setUpr/rcttt}t|}t	|t	||jt
|tdz
|jt|jt
|tdz
g|dd|jt
|d|jt|g|jtd|jt
|dyNrr)	listrrr.rrrappendextendrr>rs   r
test_mutationzTestList.test_mutationsqN
!WRRR!a%0	R!a%0!"R!,b2&	rR!,rNrrrr(rarrrrWrWs!-rrWceZdZdZdZy)TestListReversedc>ttt|_yr&r3r's rr(zTestListReversed.setUpr4rcttt}t|}t	|t	||jt
|tdz
|jt|jt
|tdz
g|dd|jt
|d|jt|g|jtd|jt
|dyrZ)	r]rrr
rrrr^r_r`s   rrazTestListReversed.test_mutationsqN
a[RRR!a%0	R!a%0!"R!,b2&	rR!,rNrbrrrrdrds%-rrdceZdZdZdZy)BadLenc*ttdSNrr.rr's r__iter__zBadLen.__iter__E"IrctdNhellor!r's r__len__zBadLen.__len__
7##rN)rrrrlrrrrrrhrh$rrhceZdZdZdZy)
BadLengthHintc*ttdSrjrkr's rrlzBadLengthHint.__iter__rmrctdrorqr's r__length_hint__zBadLengthHint.__length_hint__rsrNrrrrlryrrrrvrvrtrrvceZdZdZdZy)NoneLengthHintc*ttdSrjrkr's rrlzNoneLengthHint.__iter__rmrctSr&)NotImplementedr's rryzNoneLengthHint.__length_hint__srNrzrrrr|r|srr|ceZdZdZdZy)TestLengthHintExceptionsc|jttt|jttt	|jtgj
t|jtgj
t	t
td}|jt|j
t|jt|j
t	yrj)rr!r]rhrvr_	bytearrayr)rbs  rtest_issue1242657z*TestLengthHintExceptions.test_issue1242657s,fh7,mo>,		68<,		=?CeBi ,&(;,-/Brcn|jttttdyrj)rr]r|rr's rtest_invalid_hintz*TestLengthHintExceptions.test_invalid_hints"n./eBiArN)rrrrrrrrrrsCBrr__main__)unittest	itertoolsrcollectionsroperatorrrrrTestCaser$r+r1r6r:rArDrKrOrSrWrdobjectrhrvr|rrmainrrr<module>rs)V 	-	--<- ".0A0A"
!.0A0A!
%<h>O>O%
(-x/@/@(((*;*;0(2C2C +X->->  ,h.?.?  -x/@/@ &(9(9-,h.?.?-(-4h6G6G-,$V$$F$V
Bx00
B zHMMOr