python (3.11.7)

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

e^	ddlZddlZddlZddlmZdZeejej\ZZ	Z
eejej\ZZZ
edkrejdSdS)N)
isabstractcGfddtj}Gfddtj}Gfddtj}|||fS)Nc.eZdZfdZfdZfdZdS)#test_factory.<locals>.TestLegacyAPIctjd}||jd}|t|dGdd}|t|Gdd|}||j	d	|t|j	dd
dS)NcdSNselfs A/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/test/test_abc.pyfoozMtest_factory.<locals>.TestLegacyAPI.test_abstractproperty_basics.<locals>.foo4cdSr	r
rs r
barzMtest_factory.<locals>.TestLegacyAPI.test_abstractproperty_basics.<locals>.barr__isabstractmethod__c.eZdZejdZdS)Ktest_factory.<locals>.TestLegacyAPI.test_abstractproperty_basics.<locals>.CcdSNr
rs r
rzOtest_factory.<locals>.TestLegacyAPI.test_abstractproperty_basics.<locals>.C.foos&'arN)__name__
__module____qualname__abcabstractpropertyrr
rr
Crs'%''&%'''rr	metaclassc.eZdZefdZxZS)Ktest_factory.<locals>.TestLegacyAPI.test_abstractproperty_basics.<locals>.Dc*tjSr	superrr	__class__s r
rzOtest_factory.<locals>.TestLegacyAPI.test_abstractproperty_basics.<locals>.D.foo&+ggk1r)rrrpropertyr
__classcell__r(s@r
Dr#s0111111111rr-rF)rr
assertTruerassertFalsehasattrassertRaises	TypeErrorassertEqualrgetattrrrrrr-abc_ABCMetas     r
test_abstractproperty_basicsz@test_factory.<locals>.TestLegacyAPI.test_abstractproperty_basicss

!"
!OOC4555WS*@AABBB
(
(
(
(
(k
(
(
(
(
i+++
2
2
2
2
2A
2
2
2
QQSSWa(((WQU,BEJJKKKKKrctjd}||jtd}|t
|ddGdd}|t|Gdd	|}|	|
d	|	|
d	dS)
NcdSr	r
clss r
rzPtest_factory.<locals>.TestLegacyAPI.test_abstractclassmethod_basics.<locals>.foo$$rcdSr	r
r:s r
rzPtest_factory.<locals>.TestLegacyAPI.test_abstractclassmethod_basics.<locals>.bar'r<rrFc.eZdZejdZdS)Ntest_factory.<locals>.TestLegacyAPI.test_abstractclassmethod_basics.<locals>.Cc|jSr	rr:s r
rzRtest_factory.<locals>.TestLegacyAPI.test_abstractclassmethod_basics.<locals>.C.foo,s
%(\1rN)rrrrabstractclassmethodrr
rr
rr?+s'(11)(111rrr c.eZdZefdZxZS)Ntest_factory.<locals>.TestLegacyAPI.test_abstractclassmethod_basics.<locals>.DcDtSr	r%r;r(s r
rzRtest_factory.<locals>.TestLegacyAPI.test_abstractclassmethod_basics.<locals>.D.foo0%*WW[[]]2rrrrclassmethodrr+r,s@r
r-rD/0222222222rr-)rrBr.rrIr/r4r1r2r3rr5s     r
test_abstractclassmethod_basicszCtest_factory.<locals>.TestLegacyAPI.test_abstractclassmethod_basics#s

$%
$OOC4555
[WS*@%HHIII
2
2
2
2
2k
2
2
2
2
i+++
3
3
3
3
3A
3
3
3
QUUWWc***QQSSWWYY,,,,,rctjd}||jtd}|t
|ddGdd}|t|Gdd	|}|	|
d
|	|
d
dS)NcdSr	r
r
rr
rzQtest_factory.<locals>.TestLegacyAPI.test_abstractstaticmethod_basics.<locals>.foo6trcdSr	r
r
rr
rzQtest_factory.<locals>.TestLegacyAPI.test_abstractstaticmethod_basics.<locals>.bar9rNrrFc.eZdZejdZdS)Otest_factory.<locals>.TestLegacyAPI.test_abstractstaticmethod_basics.<locals>.CcdSrr
r
rr
rzStest_factory.<locals>.TestLegacyAPI.test_abstractstaticmethod_basics.<locals>.C.foo>"#!rN)rrrrabstractstaticmethodrr
rr
rrQ=s')##*)###rrr c$eZdZedZdS)Otest_factory.<locals>.TestLegacyAPI.test_abstractstaticmethod_basics.<locals>.DcdSNr
r
rr
rzStest_factory.<locals>.TestLegacyAPI.test_abstractstaticmethod_basics.<locals>.D.fooBrSrNrrrstaticmethodrr
rr
r-rVA######rr-rY)rrTr.rr[r/r4r1r2r3rr5s     r
 test_abstractstaticmethod_basicszDtest_factory.<locals>.TestLegacyAPI.test_abstractstaticmethod_basics5s

%O&
%OOC4555
O\WS*@%HHIII
$
$
$
$
$k
$
$
$
$
i+++
$
$
$
$
$A
$
$
$
QUUWWa(((QQSSWWYY*****rN)rrrr7rKr]r6sr

TestLegacyAPIrse	L	L	L	L	L"	-	-	-	-	-$	+	+	+	+	+	+	+rr_c4eZdZdZdZfdZfdZfdZfdZfdZ	fdZ
fd	Zfd
ZfdZ
fdZfd
ZfdZfdZfdZfdZfdZfdZdZfdZdZfdZfdZfdZfdZfdZdZfdZfdZ fdZ!d S)!test_factory.<locals>.TestABCc2Gddtj}|t|tj|t|Gdd|}||ddS)Nc>eZdZeejdZdS)8test_factory.<locals>.TestABC.test_ABC_helper.<locals>.Cc|jSr	rAr:s r
rz<test_factory.<locals>.TestABC.test_ABC_helper.<locals>.C.fooM
%(\1rNrrrrIrabstractmethodrr
rr
rrdL1#11$#111rrc.eZdZefdZxZS)8test_factory.<locals>.TestABC.test_ABC_helper.<locals>.DcDtSr	r%rFs r
rz<test_factory.<locals>.TestABC.test_ABC_helper.<locals>.D.fooSrGrrHr,s@r
r-rkRrJrr-)rABCr3typeABCMetar1r2r)rrr-s   r
test_ABC_helperz-test_factory.<locals>.TestABC.test_ABC_helperJs
2
2
2
2
2CG
2
2
2
T!WWck222i+++
3
3
3
3
3A
3
3
3
QUUWWc*****rctjd}||jd}|t|ddS)NcdSr	r
rs r
rzEtest_factory.<locals>.TestABC.test_abstractmethod_basics.<locals>.fooXrrcdSr	r
rs r
rzEtest_factory.<locals>.TestABC.test_abstractmethod_basics.<locals>.bar[rrr)rrhr.rr/r0)rrrs   r
test_abstractmethod_basicsz8test_factory.<locals>.TestABC.test_abstractmethod_basicsWs\

 
OOC4555WS*@AABBBBBrcttjd}||jd}|t
|ddGdd|tGfdd	}|	|j
d
dS)NcdSr	r
rs r
rzGtest_factory.<locals>.TestABC.test_abstractproperty_basics.<locals>.foo_s4rcdSr	r
rs r
rzGtest_factory.<locals>.TestABC.test_abstractproperty_basics.<locals>.barcrrrFc>eZdZeejdZdS)Etest_factory.<locals>.TestABC.test_abstractproperty_basics.<locals>.CcdSrr
rs r
rzItest_factory.<locals>.TestABC.test_abstractproperty_basics.<locals>.C.foog&'arN)rrrr*rrhrr
rr
rryfs1#''$#'''rrr cDeZdZjjfdZxZS)Etest_factory.<locals>.TestABC.test_abstractproperty_basics.<locals>.Dc*tjSr	r%r's r
rzItest_factory.<locals>.TestABC.test_abstractproperty_basics.<locals>.D.foolr)rrrrrgetterr+r(rs@r
r-r}k5111111111rr-r)r*rrhr.rr/r4r1r2r3r)rrrr-rr6s    @r
r7z:test_factory.<locals>.TestABC.test_abstractproperty_basics^s


 
XOOC4555WS*@%HHIII
(
(
(
(
(k
(
(
(
(
i+++
2
2
2
2
2
2
2A
2
2
2
QQSSWa(((((rcttjd}||jtd}|t
|ddGdd}|t|Gdd	|}|	|
d	|	|
d	dS)
NcdSr	r
r:s r
rzJtest_factory.<locals>.TestABC.test_abstractclassmethod_basics.<locals>.fooqs$rcdSr	r
r:s r
rzJtest_factory.<locals>.TestABC.test_abstractclassmethod_basics.<locals>.barur<rrFc>eZdZeejdZdS)Htest_factory.<locals>.TestABC.test_abstractclassmethod_basics.<locals>.Cc|jSr	rAr:s r
rzLtest_factory.<locals>.TestABC.test_abstractclassmethod_basics.<locals>.C.foozrfrNrgr
rr
rryrirrr c.eZdZefdZxZS)Htest_factory.<locals>.TestABC.test_abstractclassmethod_basics.<locals>.DcDtSr	r%rFs r
rzLtest_factory.<locals>.TestABC.test_abstractclassmethod_basics.<locals>.D.foorGrrHr,s@r
r-r~rJrr-)rIrrhr.rr/r4r1r2r3rr5s     r
rKz=test_factory.<locals>.TestABC.test_abstractclassmethod_basicsps(


 
[OOC4555
[WS*@%HHIII
2
2
2
2
2k
2
2
2
2
i+++
3
3
3
3
3A
3
3
3
QUUWWc***QQSSWWYY,,,,,rcttjd}||jtd}|t
|ddGdd}|t|Gdd	|}|	|
d
|	|
d
dS)NcdSr	r
r
rr
rzKtest_factory.<locals>.TestABC.test_abstractstaticmethod_basics.<locals>.foostrcdSr	r
r
rr
rzKtest_factory.<locals>.TestABC.test_abstractstaticmethod_basics.<locals>.barrNrrFc>eZdZeejdZdS)Itest_factory.<locals>.TestABC.test_abstractstaticmethod_basics.<locals>.CcdSrr
r
rr
rzMtest_factory.<locals>.TestABC.test_abstractstaticmethod_basics.<locals>.C.foos"#!rN)rrrr[rrhrr
rr
rrs1###$####rrr c$eZdZedZdS)Itest_factory.<locals>.TestABC.test_abstractstaticmethod_basics.<locals>.DcdSrXr
r
rr
rzMtest_factory.<locals>.TestABC.test_abstractstaticmethod_basics.<locals>.D.foorSrNrZr
rr
r-rr\rr-rY)r[rrhr.rr/r4r1r2r3rr5s     r
r]z>test_factory.<locals>.TestABC.test_abstractstaticmethod_basicss&


O 
\OOC4555
O\WS*@%HHIII
$
$
$
$
$k
$
$
$
$
i+++
$
$
$
$
$A
$
$
$
QUUWWa(((QQSSWWYY*****rcbGdd}d}|t||dS)Nc.eZdZejdZdS)Ptest_factory.<locals>.TestABC.test_object_new_with_one_abstractmethod.<locals>.CcdSr	r
rs r

method_onez[test_factory.<locals>.TestABC.test_object_new_with_one_abstractmethod.<locals>.C.method_oneDrN)rrrrrhrr
rr
rr1#$#rrr z'class C with abstract method method_oneassertRaisesRegexr2rrmsgr6s   r
'test_object_new_with_one_abstractmethodzEtest_factory.<locals>.TestABC.test_object_new_with_one_abstractmethodsW




k



=C""9c155555rcbGdd}d}|t||dS)NcNeZdZejdZejdZdS)Rtest_factory.<locals>.TestABC.test_object_new_with_many_abstractmethods.<locals>.CcdSr	r
rs r
rz]test_factory.<locals>.TestABC.test_object_new_with_many_abstractmethods.<locals>.C.method_onerrcdSr	r
rs r

method_twoz]test_factory.<locals>.TestABC.test_object_new_with_many_abstractmethods.<locals>.C.method_tworrN)rrrrrhrrr
rr
rrsN#$##$#rrr z4class C with abstract methods method_one, method_tworrs   r
)test_object_new_with_many_abstractmethodszGtest_factory.<locals>.TestABC.test_object_new_with_many_abstractmethodssX




k



JC""9c155555rctjtjtjtjfD]Gfdd}||jdh|t||	t|Gdd|}||jdh|t||	t|Gdd|}||jt||t|Gfd	d
|}||jdh|t||	t|dS)Nc,eZdZdZdZdS)Htest_factory.<locals>.TestABC.test_abstractmethod_integration.<locals>.CcdSr	r
rs r
rzLtest_factory.<locals>.TestABC.test_abstractmethod_integration.<locals>.C.foo#'4rcdSr	r
rs r
rzLtest_factory.<locals>.TestABC.test_abstractmethod_integration.<locals>.C.barrrN)rrrrr
abstractthingsr
rrs-"''#]''''''rrr rceZdZdZdS)Htest_factory.<locals>.TestABC.test_abstractmethod_integration.<locals>.DcdSr	r
rs r
rzLtest_factory.<locals>.TestABC.test_abstractmethod_integration.<locals>.D.barrrNrrrrr
rr
r-r'''''rr-ceZdZdZdS)Htest_factory.<locals>.TestABC.test_abstractmethod_integration.<locals>.EcdSr	r
rs r
rzLtest_factory.<locals>.TestABC.test_abstractmethod_integration.<locals>.E.foorrNrrrrr
rr
Errrrc&eZdZdZdS)Htest_factory.<locals>.TestABC.test_abstractmethod_integration.<locals>.FcdSr	r
rs r
rzLtest_factory.<locals>.TestABC.test_abstractmethod_integration.<locals>.F.barrrNrrsr
Frs$"''#]'''rrr)
rrhrrBrTr3__abstractmethods__r1r2r.rsetr/)rrr-rrrr6s     @r
test_abstractmethod_integrationz=test_factory.<locals>.TestABC.test_abstractmethod_integrations"%"4c6J"%"9"%":"<
/
/
(((((((+((((  !6@@@!!)Q///
1

...((((((((  !6@@@!!)Q///
1

...((((((((  !6>>>  A///((((((((((  !6@@@!!)Q///
1

....3
/
/rcGdd|tGfdd|tGfdd}||jdGd	d
t|t
5Gfdd}ddddS#1swxYwYdS)
NcxeZdZeejdZejejdZdS)Mtest_factory.<locals>.TestABC.test_descriptors_with_abstractmethod.<locals>.CcdSrr
rs r
rzQtest_factory.<locals>.TestABC.test_descriptors_with_abstractmethod.<locals>.C.foor{rcdSr	r
rvals  r
rzQtest_factory.<locals>.TestABC.test_descriptors_with_abstractmethod.<locals>.C.foo$(DrN)rrrr*rrhrsetterr
rr
rrsT#''$#'#(($#(((rrr cDeZdZjjfdZxZS)Mtest_factory.<locals>.TestABC.test_descriptors_with_abstractmethod.<locals>.Dc*tjSr	r%r's r
rzQtest_factory.<locals>.TestABC.test_descriptors_with_abstractmethod.<locals>.D.foor)rrrs@r
r-rrrr-c:eZdZjjdZdS)Mtest_factory.<locals>.TestABC.test_descriptors_with_abstractmethod.<locals>.EcdSr	r
rs  r
rzQtest_factory.<locals>.TestABC.test_descriptors_with_abstractmethod.<locals>.E.foo$(DrNrrrrrr-sr
rr((((((rrrceZdZdZeZdS)Stest_factory.<locals>.TestABC.test_descriptors_with_abstractmethod.<locals>.NotBoolctr	)
ValueErrorrs r
__bool__z\test_factory.<locals>.TestABC.test_descriptors_with_abstractmethod.<locals>.NotBool.__bool__s$,,&rN)rrrr__len__r
rr
NotBoolrs"'''"rrcJeZdZdZe_eeZdS)Mtest_factory.<locals>.TestABC.test_descriptors_with_abstractmethod.<locals>.FcdSr	r
rs r
rzQtest_factory.<locals>.TestABC.test_descriptors_with_abstractmethod.<locals>.F.barsrN)rrrrrr*r)rsr
rrs9/6wyyC,"(3--CCCrr)r1r2r3robjectr)rrrrr-rr6s   @@@r
$test_descriptors_with_abstractmethodzBtest_factory.<locals>.TestABC.test_descriptors_with_abstractmethods
)
)
)
)
)k
)
)
)
)
i+++
2
2
2
2
2
2
2A
2
2
2
i+++
)
)
)
)
)
)
)A
)
)
)
QQSSWa(((
#
#
#
#
#&
#
#
#"":..
(
(((((((((((
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(s:CCCc8GfddGfdd|tGfdd|tGfdd	}||jjdS)
NcBeZdZddZfdZfdZedZdS)\test_factory.<locals>.TestABC.test_customdescriptors_with_abstractmethod.<locals>.DescriptorNc"||_||_dSr	)_fget_fset)rfgetfsets   r
__init__zetest_factory.<locals>.TestABC.test_customdescriptors_with_abstractmethod.<locals>.Descriptor.__init__s!%DJ!%DJJJrc&||jSr	rrcallable
Descriptors  r
rzctest_factory.<locals>.TestABC.test_customdescriptors_with_abstractmethod.<locals>.Descriptor.getters%:h
;;;rc&|j|Sr	rrs  r
rzctest_factory.<locals>.TestABC.test_customdescriptors_with_abstractmethod.<locals>.Descriptor.setters%:dj(;;;rcZt|jddpt|jddS)NrF)r4rrrs r
rzqtest_factory.<locals>.TestABC.test_customdescriptors_with_abstractmethod.<locals>.Descriptor.__isabstractmethod__s2#DJ0FNNR&tz3I5QQSrr	)rrrrrrr*rrsr
rrsy&&&&<<<<<<<<<<SSSSSrrczeZdZejdZejejdZdS)Stest_factory.<locals>.TestABC.test_customdescriptors_with_abstractmethod.<locals>.CcdSrr
rs r
rzWtest_factory.<locals>.TestABC.test_customdescriptors_with_abstractmethod.<locals>.C.foor{rcdSr	r
rs  r
rzWtest_factory.<locals>.TestABC.test_customdescriptors_with_abstractmethod.<locals>.C.foorrN)rrrrrhrrrsr
rrsU#''$#'#(($#(((rrr cDeZdZjjfdZxZS)Stest_factory.<locals>.TestABC.test_customdescriptors_with_abstractmethod.<locals>.Dc*tjSr	r%r's r
rzWtest_factory.<locals>.TestABC.test_customdescriptors_with_abstractmethod.<locals>.D.foor)rrrs@r
r-rrrr-c:eZdZjjdZdS)Stest_factory.<locals>.TestABC.test_customdescriptors_with_abstractmethod.<locals>.EcdSr	r
rs  r
rzWtest_factory.<locals>.TestABC.test_customdescriptors_with_abstractmethod.<locals>.E.foorrNrrsr
rrrrr)r1r2r/rr)rrrr-rr6s  @@@r
*test_customdescriptors_with_abstractmethodzHtest_factory.<locals>.TestABC.test_customdescriptors_with_abstractmethods4
S
S
S
S
S
S
S
S
S
S
)
)
)
)
)
)
)k
)
)
)
)
i+++
2
2
2
2
2
2
2A
2
2
2
i+++
)
)
)
)
)
)
)A
)
)
)
QU788888rcGdd}||jdhGddt|}Gdd|}dS)	Nc.eZdZejdZdS);test_factory.<locals>.TestABC.test_metaclass_abc.<locals>.AcdSr	r
rs r
xz=test_factory.<locals>.TestABC.test_metaclass_abc.<locals>.A.xrrN)rrrrrhrr
rr
Arrrrr rceZdZdZdS)>test_factory.<locals>.TestABC.test_metaclass_abc.<locals>.metacdSNr
rs r
rz@test_factory.<locals>.TestABC.test_metaclass_abc.<locals>.meta.xs1rN)rrrrr
rr
metars#rrceZdZdS);test_factory.<locals>.TestABC.test_metaclass_abc.<locals>.CNrrrr
rr
rr	rr)r3rrn)rrrrr6s    r
test_metaclass_abcz0test_factory.<locals>.TestABC.test_metaclass_abcs




k




Q2SE:::




tQ







d





rcGdd}Gddt}|}|t|||t||f||||||f||}|t|||t||f||||||f|||Gdd|}|}|t|||t||f||||||fdS)NceZdZdS)Atest_factory.<locals>.TestABC.test_registration_basics.<locals>.ANr
r
rr
rrrrrr ceZdZdS)Atest_factory.<locals>.TestABC.test_registration_basics.<locals>.BNr
r
rr
BrrrrceZdZdS)Atest_factory.<locals>.TestABC.test_registration_basics.<locals>.CNr
r
rr
rr!rrr)rr/
issubclassassertNotIsInstanceregisterr.assertIsInstanceassertIs)rrrbB1rcr6s       r
test_registration_basicsz6test_factory.<locals>.TestABC.test_registration_basicss




k








F


AZ1--...ZA400111$$Q***$$Q---ABOOJq!,,---OOJq1$//000!!!Q'''!!!aT***MM"a   




A


AOOJq!,,---OOJq1$//000!!!Q'''!!!aT*****rcGdd}|jGddt}|}|t|||t||f||||||f|jGdd|}|}|t|||t||f||||||f||||dS)NceZdZdS)Dtest_factory.<locals>.TestABC.test_register_as_class_deco.<locals>.ANr
r
rr
rr *rrrr ceZdZdS)Dtest_factory.<locals>.TestABC.test_register_as_class_deco.<locals>.BNr
r
rr
rr",rrceZdZdS)Dtest_factory.<locals>.TestABC.test_register_as_class_deco.<locals>.CNr
r
rr
rr%4r#rr)rrr.rrr)rrrrrrr6s      r
test_register_as_class_decoz9test_factory.<locals>.TestABC.test_register_as_class_deco)s




k




Z




F

Z
AOOJq!,,---OOJq1$//000!!!Q'''!!!aT***
Z




A

Z
AOOJq!,,---OOJq1$//000!!!Q'''!!!aT***MM!QZZ]]+++++rcGdd}Gdd}|}|t|||t||f}||}||||t|||t||fdS)NceZdZdS)Etest_factory.<locals>.TestABC.test_isinstance_invalidation.<locals>.ANr
r
rr
rr)?rrrr ceZdZdS)Etest_factory.<locals>.TestABC.test_isinstance_invalidation.<locals>.BNr
r
rr
rr+Arrr)r/
isinstancer
assertGreaterr.)rrrr	token_old	token_newr6abc_get_cache_tokens      r
test_isinstance_invalidationz:test_factory.<locals>.TestABC.test_isinstance_invalidation>s$




k











AZ1--...ZA400111++--I
JJqMMM++--Iy)444OOJq!,,---OOJq1$//00000rcVGdd}|t|d||d|f|t	t||t	t|fGdd|}|t
Gddt
}|d	||d	|f|t	t
||t	t
|f|t	|||t	||fdS)
NceZdZdS)Ctest_factory.<locals>.TestABC.test_registration_builtins.<locals>.ANr
r
rr
rr4Nrrrr *ceZdZdS)Ctest_factory.<locals>.TestABC.test_registration_builtins.<locals>.BNr
r
rr
rr7UrrrceZdZdS)Ctest_factory.<locals>.TestABC.test_registration_builtins.<locals>.CNr
r
rr
rr9Xrr)rintrr.rstrrrrrr6s    r
test_registration_builtinsz8test_factory.<locals>.TestABC.test_registration_builtinsMs




k




JJsOOO!!"a(((!!"qd+++OOJsA..///OOJsQD11222




A



JJsOOOC!!"a(((!!"qd+++OOJsA..///OOJsQD11222OOJq!,,---OOJq1$//00000rcGdd}||Gdd|}|t|j|Gddt}||||Gdd	|}|||t|j|||dS)
NceZdZdS)Etest_factory.<locals>.TestABC.test_registration_edge_cases.<locals>.ANr
r
rr
rrBarrrr ceZdZdS)Ftest_factory.<locals>.TestABC.test_registration_edge_cases.<locals>.A1Nr
r
rr
A1rDdrrrEceZdZdS)Etest_factory.<locals>.TestABC.test_registration_edge_cases.<locals>.BNr
r
rr
rrGgrrrceZdZdS)Etest_factory.<locals>.TestABC.test_registration_edge_cases.<locals>.CNr
r
rr
rrIkrrr)rr1RuntimeErrorr)rrrErrr6s     r
test_registration_edge_casesz:test_factory.<locals>.TestABC.test_registration_edge_cases`s3




k




JJqMMM




Q


lBK;;;




F


KKNNNKKNNN




A



JJqMMMlAJ:::
JJqMMMMMrcjGdd}|td|jddS)NceZdZdS)@test_factory.<locals>.TestABC.test_register_non_class.<locals>.ANr
r
rr
rrNrrrrr zCan only register classesrY)rr2rrrr6s  r
test_register_non_classz5test_factory.<locals>.TestABC.test_register_non_classqs`




k



""9.I#$:q
2
2
2
2
2rc.Gdd}|t|||t||fGdd}|t|||t||f|t|||t||fGdd}||Gdd	|}|t|||t||fGd
d|}|||t|||t||f|t|||t||f|t|||t||f|t|||t||f|t|||t||f|tGdd
t}|t|||t||f|d||d|fdS)NceZdZdS)Itest_factory.<locals>.TestABC.test_registration_transitiveness.<locals>.ANr
r
rr
rrSxrrrr ceZdZdS)Itest_factory.<locals>.TestABC.test_registration_transitiveness.<locals>.BNr
r
rr
rrU|rrrceZdZdS)Itest_factory.<locals>.TestABC.test_registration_transitiveness.<locals>.CNr
r
rr
rrWrrrceZdZdS)Jtest_factory.<locals>.TestABC.test_registration_transitiveness.<locals>.B1Nr
r
rr
rrYrrrceZdZdS)Jtest_factory.<locals>.TestABC.test_registration_transitiveness.<locals>.C1Nr
r
rr
C1r[rrr\ceZdZdS)Mtest_factory.<locals>.TestABC.test_registration_transitiveness.<locals>.MyIntNr
r
rr
MyIntr^rrr_r5)r.rr/rr<r)rrrrrr\r_r6s       r
 test_registration_transitivenessz>test_factory.<locals>.TestABC.test_registration_transitivenessws




k



OOJq!,,---OOJq1$//000




k



Z1--...ZA400111Z1--...ZA400111




k




JJqMMM




Q


OOJr1--...OOJrA400111




Q


KKOOOZ1--...ZA400111Z2..///ZB511222OOJr1--...OOJrA400111OOJr1--...OOJrA400111OOJr2..///OOJrB511222KK







OOJua00111OOJuqd33444!!"a(((!!"qd+++++rc	Gdd
}|t5ti|dddn#1swxYwY|t5td|dddn#1swxYwYGdd}|t5t||dddn#1swxYwYdddd	g}t|D]\}Gfd
d
}||5|t5tt
|dddn#1swxYwYdddn#1swxYwYGd
dtdfd	G	fdd
}|5tt
|ddddS#1swxYwYdS)NceZdZdS)Ftest_factory.<locals>.TestABC.test_issubclass_bad_arguments.<locals>.ANr
r
rr
rrcrrrr r5ceZdZdZdS)Ftest_factory.<locals>.TestABC.test_issubclass_bad_arguments.<locals>.Cr5N)rrr__mro__r
rr
rresrrcgSr	r
)rs r
<lambda>zMtest_factory.<locals>.TestABC.test_issubclass_bad_arguments.<locals>.<lambda>s"rcdSNr5r
r
rr
rhzMtest_factory.<locals>.TestABC.test_issubclass_bad_arguments.<locals>.<lambda>srcdgSrjr
r
rr
rhzMtest_factory.<locals>.TestABC.test_issubclass_bad_arguments.<locals>.<lambda>srceZdZZdSFtest_factory.<locals>.TestABC.test_issubclass_bad_arguments.<locals>.SNrrr__subclasses__)funcsr
Srns%)NNNrrr)iceZdZdS)Ptest_factory.<locals>.TestABC.test_issubclass_bad_arguments.<locals>.CustomErrorNr
r
rr
CustomErrorrur:rrvzexception from __subclasses__cr	r
)rvexc_msgsr
	raise_exczNtest_factory.<locals>.TestABC.test_issubclass_bad_arguments.<locals>.raise_excs!k'***rceZdZZdSrmro)rysr
rrzFtest_factory.<locals>.TestABC.test_issubclass_bad_arguments.<locals>.Ss!*r)r1r2r	enumeratesubTestr<	Exceptionr)rrrbogus_subclassesrsrrrvrxrqryr6s      @@@@r
test_issubclass_bad_argumentsz;test_factory.<locals>.TestABC.test_issubclass_bad_argumentss1




k



""9--
"
"2q!!!
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"""9--
"
"2q!!!
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"








""9--
#
#1133"""
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
	 %%566
+
+4*******+****\\A\&&++**955++"3***++++++++++++++++++++++++++++++
.----i---5G
+
+
+
+
+
+
+
+
+
+
+
+
+k
+
+
+
+''W==
#
#3"""
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#s}AAA1BBBC%%C),C)4FE1%F1E55F8E59FF	F	G99G=G=cGfddtj|t|tfGdd}|t||t|fGdd}|t||t|fdS)Nc*eZdZefdZdS):test_factory.<locals>.TestABC.test_subclasshook.<locals>.Ac,|ur	d|jvStS)Nr)__dict__NotImplemented)r;rrs  r
__subclasshook__zKtest_factory.<locals>.TestABC.test_subclasshook.<locals>.A.__subclasshook__saxx$
22))rN)rrrrIr)rsr
rrs8*******rrr ceZdZdZdS):test_factory.<locals>.TestABC.test_subclasshook.<locals>.Br5Nrr
rr
rrsrrceZdZdZdS):test_factory.<locals>.TestABC.test_subclasshook.<locals>.Cr5N)rrrspamr
rr
rrsrr)rror/rr.)rrrrs   @r
test_subclasshookz/test_factory.<locals>.TestABC.test_subclasshooksL
*
*
*
*
*
*
*ck
*
*
*
*
Z1--...ZA400111







OOJq!,,---OOJq1$//000







Z1--...ZA40011111rcGdd}GfddtGdd|}|jd||jd	dS)
NceZdZdS)Htest_factory.<locals>.TestABC.test_all_new_methods_are_called.<locals>.ANr
r
rr
rrrrrr c&eZdZdZfdZxZS)Htest_factory.<locals>.TestABC.test_all_new_methods_are_called.<locals>.Brcfxjdz
c_t|Sr)counterr&__new__)r;rr(s r
rzPtest_factory.<locals>.TestABC.test_all_new_methods_are_called.<locals>.B.__new__s(IINII 77??3///r)rrrrrr+)r(rs@r
rrsC0000000000rrceZdZdS)Htest_factory.<locals>.TestABC.test_all_new_methods_are_called.<locals>.CNr
r
rr
rrrrrrr)rr3r)rrrrr6s   @r
test_all_new_methods_are_calledz=test_factory.<locals>.TestABC.test_all_new_methods_are_calleds




k




0
0
0
0
0
0
0F
0
0
0





Aq


QY***
ACCCQY*****rc`|ttjddS)N	__slots__)r.r0rrmrs r
test_ABC_has___slots__z4test_factory.<locals>.TestABC.test_ABC_has___slots__s&OOGCG[99:::::rc	d}Gdd}Gdd}Gdd|||}||jdS)NclGfddt}t|ddiS)NceZdZfdZdS)^test_factory.<locals>.TestABC.test_tricky_new_works.<locals>.with_metaclass.<locals>.metaclassc||Sr	r
)r;name
this_basesdbasesrs    r
rzftest_factory.<locals>.TestABC.test_tricky_new_works.<locals>.with_metaclass.<locals>.metaclass.__new__s#tD%333rN)rrrr)rrsr
r!rs344444444rr!temporary_classr
)rnr)rrr!s`` r
with_metaclasszKtest_factory.<locals>.TestABC.test_tricky_new_works.<locals>.with_metaclasssX44444444444||I/@"bIIIrceZdZdS)>test_factory.<locals>.TestABC.test_tricky_new_works.<locals>.ANr
r
rr
rrr:rrceZdZdS)>test_factory.<locals>.TestABC.test_tricky_new_works.<locals>.BNr
r
rr
rrr:rrceZdZdS)>test_factory.<locals>.TestABC.test_tricky_new_works.<locals>.CNr
r
rr
rrrrr)r3r()rrrrrr6s     r
test_tricky_new_worksz3test_factory.<locals>.TestABC.test_tricky_new_workss
J
J
J

LLLLLLLLLLLLLL




NN;155


Q[+66666rc2Gdd}|`||jdh|t	|dtj|||jt|dS)Nc.eZdZejdZdS)8test_factory.<locals>.TestABC.test_update_del.<locals>.AcdSr	r
rs r
rz<test_factory.<locals>.TestABC.test_update_del.<locals>.A.foorrNrrrrrhrr
rr
rrrrrr r)rr3rr/r0rupdate_abstractmethodsrrOs  r
test_update_delz-test_factory.<locals>.TestABC.test_update_dels




k




Q2UG<<<WQ..///&q)))Q2CEE:::
ACCCCCrcGdd}tjd}||_tj|||jddhd}|t||dS)Nc.eZdZejdZdS)Htest_factory.<locals>.TestABC.test_update_new_abstractmethods.<locals>.AcdSr	r
rs r
rzLtest_factory.<locals>.TestABC.test_update_new_abstractmethods.<locals>.A.barrrN)rrrrrhrr
rr
rrrrrr cdSr	r
rs r
updated_foozRtest_factory.<locals>.TestABC.test_update_new_abstractmethods.<locals>.updated_foorrrz&class A with abstract methods bar, foo)rrhrrr3rrr2)rrrrr6s    r
test_update_new_abstractmethodsz=test_factory.<locals>.TestABC.test_update_new_abstractmethodss




k







 

 AE&q)))Q2UENCCC:C""9c155555rcPGdd}Gdd|}d}|t||||jdhd|_tj||||jtdS)	Nc.eZdZejdZdS)Ctest_factory.<locals>.TestABC.test_update_implementation.<locals>.AcdSr	r
rs r
rzGtest_factory.<locals>.TestABC.test_update_implementation.<locals>.A.foo rrNrr
rr
rrrrrr ceZdZdS)Ctest_factory.<locals>.TestABC.test_update_implementation.<locals>.BNr
r
rr
rr$rrr class B with abstract method foorcdSr	r
rs r
rhzJtest_factory.<locals>.TestABC.test_update_implementation.<locals>.<lambda>+sr)rr2r3rrrrrrrrrr6s    r
test_update_implementationz8test_factory.<locals>.TestABC.test_update_implementations




k









A


5C""9c1555Q2UG<<<%%AE&q)))
ACCCQ2CEE:::::rcGdd}d}tj|Gdd|}|||jt	dS)Nc.eZdZejdZdS)Atest_factory.<locals>.TestABC.test_update_as_decorator.<locals>.AcdSr	r
rs r
rzEtest_factory.<locals>.TestABC.test_update_as_decorator.<locals>.A.foo4rrNrr
rr
rr3rrrr cd|_|S)NcdSr	r
rs r
rhzatest_factory.<locals>.TestABC.test_update_as_decorator.<locals>.class_decorator.<locals>.<lambda>9str)rr:s r
class_decoratorzOtest_factory.<locals>.TestABC.test_update_as_decorator.<locals>.class_decorator8s++
rceZdZdS)Atest_factory.<locals>.TestABC.test_update_as_decorator.<locals>.BNr
r
rr
rr<srr)rrr3rr)rrrrr6s    r
test_update_as_decoratorz6test_factory.<locals>.TestABC.test_update_as_decorator2s




k








'





A

_(
'

ACCCQ2CEE:::::rcGdd}tjd}||_tj|||t|ddS)NceZdZdS)<test_factory.<locals>.TestABC.test_update_non_abc.<locals>.ANr
r
rr
rrErrrcdSr	r
rs r
rzFtest_factory.<locals>.TestABC.test_update_non_abc.<locals>.updated_fooHrrr)rrhrrr/r0)rrrs   r
test_update_non_abcz1test_factory.<locals>.TestABC.test_update_non_abcDs










 

 AE&q)))
ACCCWQ(=>>?????rcGdd}Gdd|}||`tj|d}|t||dS)Nc.eZdZejdZdS)Gtest_factory.<locals>.TestABC.test_update_del_implementation.<locals>.AcdSr	r
rs r
rzKtest_factory.<locals>.TestABC.test_update_del_implementation.<locals>.A.fooSrrNrr
rr
rrRrrrr ceZdZdZdS)Gtest_factory.<locals>.TestABC.test_update_del_implementation.<locals>.BcdSr	r
rs r
rzKtest_factory.<locals>.TestABC.test_update_del_implementation.<locals>.B.fooXDrNrr
rr
rrW#rrrrrrrr2rs    r
test_update_del_implementationz<test_factory.<locals>.TestABC.test_update_del_implementationQs




k









A



ACCC&q)))4C""9c155555rcGdd}Gdd|}Gdd|}||`tj|d}|t||dS)	Nc.eZdZejdZdS)Ktest_factory.<locals>.TestABC.test_update_layered_implementation.<locals>.AcdSr	r
rs r
rzOtest_factory.<locals>.TestABC.test_update_layered_implementation.<locals>.A.foofrrNrr
rr
rrerrrr ceZdZdS)Ktest_factory.<locals>.TestABC.test_update_layered_implementation.<locals>.BNr
r
rr
rrjrrrceZdZdZdS)Ktest_factory.<locals>.TestABC.test_update_layered_implementation.<locals>.CcdSr	r
rs r
rzOtest_factory.<locals>.TestABC.test_update_layered_implementation.<locals>.C.foonrrNrr
rr
rrmrrrz class C with abstract method foor)rrrrrr6s     r
"test_update_layered_implementationz@test_factory.<locals>.TestABC.test_update_layered_implementationds




k









A







A



ACCC&q)))4C""9c155555rc(Gdd}Gdd}Gdd||}||jdh|`tj|||jt|dS)	Nc.eZdZejdZdS)Ftest_factory.<locals>.TestABC.test_update_multi_inheritance.<locals>.AcdSr	r
rs r
rzJtest_factory.<locals>.TestABC.test_update_multi_inheritance.<locals>.A.foo|rrNrr
rr
rr{rrrr ceZdZdZdS)Ftest_factory.<locals>.TestABC.test_update_multi_inheritance.<locals>.BcdSr	r
rs r
rzJtest_factory.<locals>.TestABC.test_update_multi_inheritance.<locals>.B.foorrNrr
rr
rrrrrc.eZdZejdZdS)Ftest_factory.<locals>.TestABC.test_update_multi_inheritance.<locals>.CcdSr	r
rs r
rzJtest_factory.<locals>.TestABC.test_update_multi_inheritance.<locals>.C.foorrNrr
rr
rrrrrr)r3rrrrrr>s    r
test_update_multi_inheritancez;test_factory.<locals>.TestABC.test_update_multi_inheritancezs




k









k








Aq




Q2UG<<<&q)))Q2CEE:::
ACCCCCrN)"rrrrprtr7rKr]rrrrrrrr&r1r?rKrPr`rrrrrrrrrrrrr)r6r0sr
TestABCraHs	+	+	+	C	C	C	)	)	)	)	)$	-	-	-	-	-(	+	+	+	+	+(	6	6	6	6	6		6		6		6		6		6	/	/	/	/	/8	(	(	(	(	(>	9	9	9	9	9<						+	+	+	+	+0	,	,	,	,	,*
	1
	1
	1
	1
	1
	1	1	1	1	1	1&					"	2	2	2	2	2%	,%	,%	,%	,%	,N/	#/	#/	#/	#/	#b	2	2	2$	+	+	+	+	+	;	;	;
	7
	7
	7
	7
	7
	
	
	
	
	 	6	6	6	6	6 	;	;	;	;	;(	;	;	;	;	;$	@	@	@	6	6	6	6	6&	6	6	6	6	6,							rrc$eZdZfdZfdZdS)-test_factory.<locals>.TestABCWithInitSubclassc	Gdd}iGfdd}Gdd||dd	d
}|tdd	d
dS)NceZdZdZdS)\test_factory.<locals>.TestABCWithInitSubclass.test_works_with_init_subclass.<locals>.abc_ABCr
N)rrrrr
rr
abc_ABCrs			rrr c"eZdZfdZxZS)htest_factory.<locals>.TestABCWithInitSubclass.test_works_with_init_subclass.<locals>.ReceivesClassKwargscrt|dSr	r&__init_subclass__updater;kwargsr(saved_kwargss  r
rzztest_factory.<locals>.TestABCWithInitSubclass.test_works_with_init_subclass.<locals>.ReceivesClassKwargs.__init_subclass__3GG--/// ''/////rrrrrr+r(rs@r
ReceivesClassKwargsr>0000000000rrceZdZdS)]test_factory.<locals>.TestABCWithInitSubclass.test_works_with_init_subclass.<locals>.ReceiverNr
r
rr
Receiverrrrrrr)ryzr3dict)rrrrrr6s    @r
test_works_with_init_subclasszKtest_factory.<locals>.TestABCWithInitSubclass.test_works_with_init_subclasss




K



L
0
0
0
0
0
0
0
0
0
0




.1Q



\4!qA+>+>+>?????rciGfdd}Gdd|d}|tddS)Nc"eZdZfdZxZS)otest_factory.<locals>.TestABCWithInitSubclass.test_positional_only_and_kwonlyargs_with_init_subclass.<locals>.Acrt|dSr	rrs  r
rztest_factory.<locals>.TestABCWithInitSubclass.test_positional_only_and_kwonlyargs_with_init_subclass.<locals>.A.__init_subclass__rrrrs@r
rrr	rrceZdZdS)otest_factory.<locals>.TestABCWithInitSubclass.test_positional_only_and_kwonlyargs_with_init_subclass.<locals>.BNr
r
rr
rrrrrtest)r!r)rr)rrrrr6s   @r
6test_positional_only_and_kwonlyargs_with_init_subclasszdtest_factory.<locals>.TestABCWithInitSubclass.test_positional_only_and_kwonlyargs_with_init_subclasssL
0
0
0
0
0
0
0
0
0
0





A6



\4V+<+<+<=====rN)rrrrrr^sr
TestABCWithInitSubclassrsL
	@
	@
	@
	@
	@
	>
	>
	>
	>
	>
	>
	>rr)unittestTestCase)r6r0r_rrs``   r
test_factoryrs5+5+5+5+5+5+5+)5+5+5+pI	I	I	I	I	I	I	I	(#I	I	I	X>>>>>>>("3>>>2'#:::r__main__)rr_py_abcinspectrrroget_cache_tokenTestLegacyAPI_Py
TestABC_PyTestABCWithInitSubclass_PyTestLegacyAPI_C	TestABC_CTestABCWithInitSubclass_Crmainr
rr
<module>r*s



^
;^
;^
;@<H<HKH[<]<]8*88DW_ELE\9^9^55zHMOOOOOr