python (3.12.0)

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

Αe' lddlZddlZGddejZedk(rej
yy)NcreZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZdZdZdZdZy)TestcGdd}Gdd|}|j|j|j|jy)Nc"eZdZdZfdZxZS)"Test.test_init_subclass.<locals>.AFc0t|d|_yNTsuper__init_subclass__initializedcls	__class__s J/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/test/test_subclassinit.pyrz4Test.test_init_subclass.<locals>.A.__init_subclass__
)+"&__name__
__module____qualname__r
r
__classcell__rs@rArK
'
'rrceZdZy)"Test.test_init_subclass.<locals>.BNrrrrrBrrr )assertFalser

assertTrueselfrr s   rtest_init_subclasszTest.test_init_subclasss<	'	'			
'

&rcGddt}Gdd|}|j|j|j|jy)Nc"eZdZdZfdZxZS)'Test.test_init_subclass_dict.<locals>.AFc0t|d|_yr	r
rs rrz9Test.test_init_subclass_dict.<locals>.A.__init_subclass__rrrrs@rrr)rrrceZdZy)'Test.test_init_subclass_dict.<locals>.BNrrrrr r,r!rr )dictr"r
r#r$s   rtest_init_subclass_dictzTest.test_init_subclass_dicts>	'	'			
'

&rc~Gdd}Gdd|d}|j|jtdy)NceZdZdZy))Test.test_init_subclass_kwargs.<locals>.Ac||_yN)kwargs)rr4s  rrz;Test.test_init_subclass_kwargs.<locals>.A.__init_subclass__$s	#
rNrrrrrrrrr1#s
$rrceZdZy))Test.test_init_subclass_kwargs.<locals>.BNrrrrr r7'r!rr )x)assertEqualr4r-r$s   rtest_init_subclass_kwargszTest.test_init_subclass_kwargs"s4	$	$	Q		
4!9-rcGdd}|jt5Gdd|}dddy#1swYyxYw)NceZdZdZy)(Test.test_init_subclass_error.<locals>.Actr3)RuntimeErrorrs rrz:Test.test_init_subclass_error.<locals>.A.__init_subclass__.s""rNr5rrrrr>-s
#rrceZdZy)(Test.test_init_subclass_error.<locals>.BNrrrrr rC2rr )assertRaisesr@r$s   rtest_init_subclass_errorzTest.test_init_subclass_error,s=	#	#

|
,	
A
			5>cGdd}|jt5Gdd|}dddy#1swYyxYw)NceZdZdZy)(Test.test_init_subclass_wrong.<locals>.Acyr3r)rwhatevers  rrz:Test.test_init_subclass_wrong.<locals>.A.__init_subclass__7rNr5rrrrrJ6
rrceZdZy)(Test.test_init_subclass_wrong.<locals>.BNrrrrr rP;rDrr )rE	TypeErrorr$s   rtest_init_subclass_wrongzTest.test_init_subclass_wrong5s=		

y
)	
A
			rGcGdd}Gdd|}Gdd|}|j|j||j|j|y)NceZdZfdZxZS)5Test.test_init_subclass_skipped.<locals>.BaseWithInitc2t|di|||_yNrr
rr4rs  rrzGTest.test_init_subclass_skipped.<locals>.BaseWithInit.__init_subclass__@s)3F3"%rrrrrrrs@rBaseWithInitrU?

&
&rrZceZdZy)8Test.test_init_subclass_skipped.<locals>.BaseWithoutInitNrrrrBaseWithoutInitr]Dr!rr^ceZdZy)*Test.test_init_subclass_skipped.<locals>.ANrrrrrr`Gr!rr)assertIsr
)r%rZr^rs    rtest_init_subclass_skippedzTest.test_init_subclass_skipped>sL	&	&
	l				


ammQ'

o11?Crc"Gdd}Gdd|}Gdd}Gdd|}Gd	d
|||d}|j|jd
dg|j|jg|j|jgy)NceZdZfdZxZS)-Test.test_init_subclass_diamond.<locals>.Basec2t|di|g|_yrWrrcallsrXs  rrz?Test.test_init_subclass_diamond.<locals>.Base.__init_subclass__Os)3F3	rrYrs@rBasereNs


rriceZdZy)-Test.test_init_subclass_diamond.<locals>.LeftNrrrrLeftrkSr!rrlceZdZfdZxZS)/Test.test_init_subclass_diamond.<locals>.MiddlecPt|di||xj|gz
c_yrWrg)rmiddler4rs   rrzATest.test_init_subclass_diamond.<locals>.Middle.__init_subclass__Ws#)3F3		fX%	rrYrs@rMiddlernVr[rrqc eZdZdfd	ZxZS).Test.test_init_subclass_diamond.<locals>.RightcPt|di||xj|gz
c_yrWrg)rrightr4rs   rrz@Test.test_init_subclass_diamond.<locals>.Right.__init_subclass__\s#)3F3		eW$	r)rurYrs@rRightrs[s

%
%rrvceZdZy)*Test.test_init_subclass_diamond.<locals>.ANrrrrrrx`r!rrrp)rpru)r:rh)r%rirlrqrvrs      rtest_init_subclass_diamondzTest.test_init_subclass_diamondMs		
	4		&	&
	%D	%
	feH		
7H"56R(b)rcGddGfdd}|j|jjd|j|jj|y)NceZdZdZy)&Test.test_set_name.<locals>.Descriptorc ||_||_yr3ownernamer%rrs   r__set_name__z3Test.test_set_name.<locals>.Descriptor.__set_name__i"
 	rNrrrrrrr
Descriptorr|h
!rrceZdZWZy)Test.test_set_name.<locals>.ANrrrdrsrrrm
Arrr)r:rrrar)r%rrs  @r
test_set_namezTest.test_set_namegsG	!	!
			
3'

accii#rc~Gfddt}GddGfdd|}j|dy)	Nc"eZdZfdZxZS)*Test.test_set_name_metaclass.<locals>.Metact|||||}j|jjdj|jj|y)Nrr)r__new__r:rrrar)rrbasesnsretrr%s     rrz2Test.test_set_name_metaclass.<locals>.Meta.__new__usHgoc4;  S1

ceekk3/rrrrrr)rr%s@rMetarts


rrceZdZdZy)0Test.test_set_name_metaclass.<locals>.Descriptorc ||_||_yr3r~rs   rrz=Test.test_set_name_metaclass.<locals>.Descriptor.__set_name__|rrNrrrrrr{rrrceZdZWZy)'Test.test_set_name_metaclass.<locals>.ANrrsrrrrrr	metaclassr)typer:)r%rrrs`  @rtest_set_name_metaclasszTest.test_set_name_metaclassss5	4		!	!
	$	ArcTGdd|jt5}Gfdd}dddjj}|j	t|d|j	t|d|j	t|dy#1swYqxYw)NceZdZdZy),Test.test_set_name_error.<locals>.Descriptorcddzy)Nrrrs   rrz9Test.test_set_name_error.<locals>.Descriptor.__set_name__s	!rNrrrrrrs
rrceZdZWZy)0Test.test_set_name_error.<locals>.NotGoingToWorkNrrrattrrsrNotGoingToWorkr
!|rr\bNotGoingToWork\b\battr\b\bDescriptor\b)rEZeroDivisionError	exception	__notes__assertRegexstrr%cmrnotesrs    @rtest_set_name_errorzTest.test_set_name_errors		

0
1	$R
$
$	$&&U%:;U[1U%67	$	$
BB'cTGdd|jt5}Gfdd}dddjj}|j	t|d|j	t|d|j	t|dy#1swYqxYw)NceZdZdZy),Test.test_set_name_wrong.<locals>.Descriptorcyr3r)r%s rrz9Test.test_set_name_wrong.<locals>.Descriptor.__set_name__rMrNrrrrrrrNrrceZdZWZy)0Test.test_set_name_wrong.<locals>.NotGoingToWorkNrrsrrrrrrrrr)rErQrrrrrs    @rtest_set_name_wrongzTest.test_set_name_wrongs		

y
)	$R
$
$	$&&U%:;U[1U%67	$	$rcbgGfddGfdd}|jddy)NceZdZfdZy)0Test.test_set_name_lookup.<locals>.NonDescriptorc(j|yr3)append)r%rresolveds  r__getattr__z<Test.test_set_name_lookup.<locals>.NonDescriptor.__getattr__s%rN)rrrr)rsr
NonDescriptorrs
&rrceZdZWZy)$Test.test_set_name_lookup.<locals>.ANr)rsrrrs
Arrrz*__set_name__ is looked up in instance dict)assertNotIn)r%rrrs  @@rtest_set_name_lookupzTest.test_set_name_lookups4	&	&	 	 	
E	GrcJGddGddt}Gdd}Gfdd||	}|j|j||j|jd
|j|j
||j|jd
y)NceZdZdZy)4Test.test_set_name_init_subclass.<locals>.Descriptorc ||_||_yr3r~rs   rrzATest.test_set_name_init_subclass.<locals>.Descriptor.__set_name__rrNrrrrrrrrrceZdZfdZxZS).Test.test_set_name_init_subclass.<locals>.Metacpt|||||}|j|_|j|_|Sr3)rrr
meta_ownerr	meta_name)rrrrr%rs     rrz6Test.test_set_name_init_subclass.<locals>.Meta.__new__s2wsD%<"&**!%rrrs@rrrs


rrceZdZdZy)+Test.test_set_name_init_subclass.<locals>.Acp|jj|_|jj|_yr3)rrrrAs rrz=Test.test_set_name_init_subclass.<locals>.A.__init_subclass__s EEKK	55::rNr5rrrrrs
&rrceZdZWZy)+Test.test_set_name_init_subclass.<locals>.BNrrsrr rrrr rr)rrarr:rr)r%rrr rs    @rtest_set_name_init_subclassz Test.test_set_name_init_subclasss	!	!
	4		&	&
	T		


aggq!%

allA&%rcdgGfddGfdd}|jgdy)NceZdZfdZy)5Test.test_set_name_modifying_dict.<locals>.DescriptorcHt||dzdj|y)Nr9)setattrr)r%rrnotifieds   rrzBTest.test_set_name_modifying_dict.<locals>.Descriptor.__set_name__stcz40%rNr)rsrrrs
&rrc^eZdZWZWZWZWZWZy),Test.test_set_name_modifying_dict.<locals>.AN)rrrabcrersrrrs&AAAAArr)rrrrr)assertCountEqual)r%rrrs  @@rtest_set_name_modifying_dictz!Test.test_set_name_modifying_dicts/	&	&
			
h(ABrc	|Gddt}|jt5Gdd|d}ddd|jt5tjdt
ft
|ddddtjdt
ft
|dGddt}|jt5Gdd|d}dddGd	dt}Gd
d|d}|j|jdy#1swYxYw#1swYxYw#1swYZxYw)NceZdZy) Test.test_errors.<locals>.MyMetaNrrrrMyMetarr!rrceZdZy!Test.test_errors.<locals>.MyClassNrrrrMyClassrrDrrrrotherargceZdZfdZxZS)rc(t||||yr3)r__init__r%rr	namespacerrs     rrz)Test.test_errors.<locals>.MyMeta.__init__s ui8r)rrrrrrs@rrz Test.test_errors.<locals>.MyMetas

9
9rceZdZyrrrrrrz!Test.test_errors.<locals>.MyClassrDrc(eZdZfdZfdZxZS)rc(t|||||Sr3rr)rrrrrrs     rrz(Test.test_errors.<locals>.MyMeta.__new__swsD%CCrc6t||||||_yr3)rrrrs     rrz)Test.test_errors.<locals>.MyMeta.__init__s ui8 (
r)rrrrrrrs@rrz Test.test_errors.<locals>.MyMetas
D
)
)rceZdZyrrrrrrz!Test.test_errors.<locals>.MyClassr!r)
rrErQtypes	new_classobjectr-
prepare_classr:rr%rrs   rtest_errorszTest.test_errorss	T	

y
)	
FQ
	

y
)	@OOIy 6A>
@	@	Iy 6A>	@	9T	9

y
)	
FQ
		)T	)			
))1-;			@	@		s#D(D&D2D#&D/2D;cGddt}|jt5Gdd|}dddGddt}Gdd|d	}|j|jdy#1swYBxYw)
NceZdZfdZxZS)/Test.test_errors_changed_pep487.<locals>.MyMetac*t|||||S)Nrrr-r)rrrrrs    rrz7Test.test_errors_changed_pep487.<locals>.MyMeta.__new__s"wsU,5'77rrrs@rrrs

7
7rrceZdZy0Test.test_errors_changed_pep487.<locals>.MyClassNrrrrrrrDrrrceZdZfdZxZS)rc:t|||||}||_|Sr3)rrr)rrrrrr%rs      rrz7Test.test_errors_changed_pep487.<locals>.MyMeta.__new__s#wsD%C (
rrrs@rrz/Test.test_errors_changed_pep487.<locals>.MyMetas


rceZdZyr
rrrrrz0Test.test_errors_changed_pep487.<locals>.MyClass
r!rrr)rrErQr:rrs   rtest_errors_changed_pep487zTest.test_errors_changed_pep487sq	7T	7


y
)	
F
		T				
))1-		s
A33A<ctdtfi}|j|t|j|jd|jt5tdtfidddy#1swYyxYw)NNewClassr)rrassertIsInstancer:rrErQ)r%ts  r	test_typezTest.test_typesgfY+a&Z0


y
)	<j	;	<	<	<sA77BN)rrrr&r.r;rFrRrbryrrrrrrrrrrrrrrrs[''.
D*4
$"88
G&4C !.F.,<rr__main__)runittestTestCaserrmainrrr<module>rs:P<8P<fzHMMOr