python (3.11.7)

(root)/
lib/
python3.11/
test/
__pycache__/
test_contains.cpython-311.pyc

eh
ddlmZddlZddlmZGddZGddeZGdd	eZGd
dejZ	e
dkrejdSdS)
)dequeN)NEVER_EQceZdZdZdS)base_setc||_dSNelselfr
s  F/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/test/test_contains.py__init__zbase_set.__init__s
N)__name__
__module____qualname__rrr
rrs#rrceZdZdZdS)mysetc|j|kSrr	rs  r
__contains__zmyset.__contains__sw"}rNrrrrrrr
rr
s#rrceZdZdZdS)seqc|jg|Srr	)rns  r
__getitem__zseq.__getitem__sy|rN)rrrrrrr
rrs#rrc&eZdZdZdZdZdZdS)TestContainscrtdtd}td}|d||d||d||d||tfd|tfd|dd|dd|dd|dd|td	dS)
NrcdvSNr!rasr
<lambda>z0TestContains.test_common_tests.<locals>.<lambda>sQ!VrcdvSr#rr$sr
r&z0TestContains.test_common_tests.<locals>.<lambda>sQaZrcabcdc
ddvS)Nr)rrrr
r&z0TestContains.test_common_tests.<locals>.<lambda>%s
TU]r)rrrassertInassertNotInassertRaises	TypeError)rbr(r%s   @r
test_common_testszTestContains.test_common_testss(QKK!HHFF

aA

aA)^^^^444)%7%7%7%7888	


c5!!!e$$$

b"

b%   )%:%:;;;;;rctd}|D]}||||d||||t|}|D]}||||d||||Gdd}|||jdS)N
c@eZdZdZeedZdZdS):TestContains.test_builtin_sequence_types.<locals>.Deviant1zBehaves strangely when compared

            This class is designed to make sure that the contains code
            works when the list is modified during the check.
            c|dkrN|jd|jd|jddS)N
r)aListremoverothers  r
__eq__zATestContains.test_builtin_sequence_types.<locals>.Deviant1.__eq__<sRB;;J%%b)))J%%b)))J%%b)))qrN)rrr__doc__listranger=rArrr
Deviant1r75sD


DrOOE




rrE)rDr-r.tupler=)rr%irEs    r
test_builtin_sequence_typesz(TestContains.test_builtin_sequence_types's
"II	 	 AMM!QQA!HH	 	 AMM!QQA									
X^44444rcZtddddtf}tttjtttf}|D]c}||}|D]}|	|||
|||k|
||kddS)Nnanr!r))floatrrCrFdictfromkeysset	frozensetrr-
assertTrue)rvaluesconstructorsconstructor	containerelems      r
test_nonreflexivezTestContains.test_nonreflexiveEsuq$x7UDM3	5H'	4	4K#F++I!
/
/

dI....OOIV)<)<<===OOI23333	4	4rc$Gddt}|}Gdd|}||d|v|dtv|tfddS)NceZdZdZdS)4TestContains.test_block_fallback.<locals>.ByContainscdS)NFrr?s  r
rzATestContains.test_block_fallback.<locals>.ByContains.__contains__UsurNrrrr

ByContainsrYTs#




rr[ceZdZdZdZdZdS)7TestContains.test_block_fallback.<locals>.BlockContainsaIs not a container

            This class is a perfectly good iterable (as tested by
            list(bc)), as well as inheriting from a perfectly good
            container, but __contains__ = None prevents the usual
            fallback to iteration in the container protocol. That
            is, normally, 0 in bc would fall back to the equivalent
            of any(x==0 for x in bc), but here it's blocked from
            doing so.
            c3
KdSrr)rs r
__iter__z@TestContains.test_block_fallback.<locals>.BlockContains.__iter__csrN)rrrrBr_rrrr

BlockContainsr]Xs.	
	



 LLLrr`rcdvS)Nrr)bcsr
r&z2TestContains.test_block_fallback.<locals>.<lambda>jsQ"Wr)objectassertFalserCr/r0)rr[r(r`rbs    @r
test_block_fallbackz TestContains.test_block_fallbackRs								
JLL	 	 	 	 	 J	 	 	 ]__a   d2hh''')____55555rN)rrrr2rHrVrerrr
rrsP<<<(555<44466666rr__main__)collectionsrunittesttest.supportrrrrTestCaserrmainrrr
<module>rls
!!!!!!H(X6X6X6X6X68$X6X6X6tzHMOOOOOr