python (3.11.7)

(root)/
lib/
python3.11/
test/
__pycache__/
test_sys.cpython-311.opt-1.pyc

eCddlZddlZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
ZddlmZddl
m
Z
ddlmZmZddl
mZddl
mZddlZddlZddlZdadZGdd	ejZGd
dejZGdd
ejZGddejZejjGddejZejjGddejZe dkrej!dSdS)N)support)	os_helper)assert_python_okassert_python_failure)threading_helper)
import_helpern2BI2nc eZdZdZdZdZdS)DisplayHookTestctj}tj5}|ddddn#1swxYwY||d|tjdt`tj5}|ddddn#1swxYwY||d|ttd|
t|tj}	t`|
t|d|t_dS#|t_wxYw)N*z42
_)sys__displayhook__rcaptured_stdoutassertEqualgetvaluebuiltinsr
assertTruehasattrassertRaises	TypeErrorstdoutRuntimeError)selfdhoutrs    A/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/test/test_sys.pytest_original_displayhookz)DisplayHookTest.test_original_displayhooks

 

$
&
&	#BrFFF																
000R(((J

$
&
&	#BtHHH																
,,,GHc222333	
)R(((	 
lB333CJJJCJs*8<<%B==CC#E22Fctj}	t`tddd}|tt
||t_dS#|t_wxYw)N42<string>single)rdisplayhookcompilerreval)rr%codes   rtest_lost_displayhookz%DisplayHookTest.test_lost_displayhook9sZo	*4X66DlD$777)COOOkCO))))s9AA#cd}tjtd|5tddd}|t
t|ddddS#1swxYwYdS)NctN
ValueError)objs rbaddisplayhookz?DisplayHookTest.test_custom_displayhook.<locals>.baddisplayhookCr%r"r#r$)r	swap_attrrr&rr.r')rr0r(s   rtest_custom_displayhookz'DisplayHookTest.test_custom_displayhookBs			
sM>
B
B	6	64X66Dj$555	6	6	6	6	6	6	6	6	6	6	6	6	6	6	6	6	6	6s3AA#&A#N)__name__
__module____qualname__r r)r4r2rrrsA   6***66666r2rc2eZdZdZdZdZdZdZdZdS)ActiveExceptionTestscT|tjddS)NNNN)rrexc_infors rtest_exc_info_no_exceptionz/ActiveExceptionTests.test_exc_info_no_exceptionKs%);<<<<<r2cT|tjddSr,)rr	exceptionr>s rtest_sys_exception_no_exceptionz4ActiveExceptionTests.test_sys_exception_no_exceptionNs$$/////r2cnd}	|n,#t$r}|}tj}Yd}~nd}~wwxYw||t||dt||d|||d|jdS)Nc tdNr
r-r8r2rfzEActiveExceptionTests.test_exc_info_with_exception_instance.<locals>.fRR.. r2r	Exceptionrr=assertIsInstancer.assertIs
__traceback__rrFe_er=s     r%test_exc_info_with_exception_instancez:ActiveExceptionTests.test_exc_info_with_exception_instanceQs	!	!	!	&
ACCCC	&	&	&A|~~HHHHHH	&	
a,,,

hqk:...

hqk1%%%

hqk1?33333

949cnd}	|n,#t$r}|}tj}Yd}~nd}~wwxYw||t||dt||d|||d|jdS)Nctr,r-r8r2rrFzAActiveExceptionTests.test_exc_info_with_exception_type.<locals>.far1r2rrHrIrJrOs     r!test_exc_info_with_exception_typez6ActiveExceptionTests.test_exc_info_with_exception_type`s				&
ACCCC	&	&	&A|~~HHHHHH	&	
a,,,

hqk:...

hqk1%%%

hqk1?33333rScd}	|n,#t$r}|}tj}Yd}~nd}~wwxYw||t|||dS)Nc tdrEr-r8r2rrFzJActiveExceptionTests.test_sys_exception_with_exception_instance.<locals>.fprGr2rKrrArLr.rMrrFrPrQexcs     r*test_sys_exception_with_exception_instancez?ActiveExceptionTests.test_sys_exception_with_exception_instanceos	!	!	!	"
ACCCC	"	"	"A-//CCCCCC	"	
a,,,

c1rScd}	|n,#t$r}|}tj}Yd}~nd}~wwxYw||t|||dS)Nctr,r-r8r2rrFzFActiveExceptionTests.test_sys_exception_with_exception_type.<locals>.f}r1r2rYrZs     r&test_sys_exception_with_exception_typez;ActiveExceptionTests.test_sys_exception_with_exception_type|s				"
ACCCC	"	"	"A-//CCCCCC	"	
a,,,

c1rSN)	r5r6r7r?rBrRrVr\r_r8r2rr:r:Jsn===000
4
4
4
4
4
4r2r:c eZdZdZdZdZdS)ExceptHookTestc	td#t$rT}tj5}tjtjdddn#1swxYwYYd}~nd}~wwxYw||d|	ttjdS)Nr
ValueError: 42
)r.rcaptured_stderrr__excepthook__r=rrendswithrrrr[errs   rtest_original_excepthookz'ExceptHookTest.test_original_excepthooks	4R.. 	4	4	4(**
4c"CLNN33
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4	4	
//0BCCDDD)S%788888s7
A/A* AA*A	A*!A	"A**A/cDtj5tjdt	t	dd#t$rT}tj5}tjtj	dddn#1swxYwYYd}~nd}~wwxYwdddn#1swxYwY|
}|d||d|||
ddS)Nignoremsg)sbytes_filename{rtextz%  File "b'bytes_filename'", line 123
z	    text
zSyntaxError: msg
)warningscatch_warningssimplefilterBytesWarningSyntaxErrorrrdrrer=rassertInrrfrgs   rtest_excepthook_bytes_filenamez-ExceptHookTest.test_excepthook_bytes_filenames
$
&
&	8	8!(L999
8!%)LMMM
8
8
8,..8#&77888888888888888
8	8	8	8	8	8	8	8	8	8	8	8	8	8	8	8llnn

BCHHH

&,,,%9::;;;;;sXB-A
B
B B	=B	B

BB
BB-BB--B14B1ctjd5}tjddddddn#1swxYwY|d|vdS)NstderrrH1zETypeError: print_exception(): Exception expected for value, str found)testrcaptured_outputr
excepthookrr)rrws  rtest_excepthookzExceptHookTest.test_excepthooks
\
)
)(
3
3	&vN1c1%%%	&	&	&	&	&	&	&	&	&	&	&	&	&	&	&,/5/@/@A	B	B	B	B	BsAA
AN)r5r6r7rirur|r8r2rrarasF	9	9	9<<<"BBBBBr2raceZdZdZdZdZdZdZdZdZ	e
jjdZ
d	Zd
Zejeeddd
Ze
jjdZdZejejdZejejdZdZdZejejddZ dZ!dZ"dZ#dZ$dZ%dZ&dZ'e
jjdZ(ej)dZ*eje+j,dejej-e.j/d kd!ej)d"Z0ej1ej2ej3kd#ej)d$Z4d?d&Z5d'Z6d@d(Z7d)Z8ej)d*Z9ej)d+Z:d,Z;e
jjd-Z<ejeed.d/d0Z=d1Z>d2Z?d3Z@ejeed4d5d6ZAej)d7ZBd8ZCejeed9d:d;ZDej)d<ZEd=ZFd>ZGd%S)A
SysModuleTestcBtjdSr,)ryr
reap_childrenr>s rtearDownzSysModuleTest.tearDowns""$$$$$r2cttjddt5}tjdddn#1swxYwY|jjtdd\}}}	|d	|d	|dt5}tjddddn#1swxYwY	|jjdt5}tjddddn#1swxYwY	|jjdt5}tjddddn#1swxYwY	|jjdt5}tjddddn#1swxYwY	|jjdtdd	\}}}	|d
	|d	|dfd}|dd
|dd|ddddS)Nr
-czimport sys; sys.exit()rr2)r
exit)zraise SystemExit(47)/ctd|fi|\}}}|d|d||t	|dt	|dS)NrrHr2z doesn't start with )rrr
startswithascii)r(expectedenv_varsrcrrhrs      rcheck_exit_messagez3SysModuleTest.test_exit.<locals>.check_exit_messages0tHHxHHLBSR###S#&&&OOCNN844.3Cjjjj%///J
L
L
L
L
Lr2z?import sys; sys.stderr.write("unflushed,"); sys.exit("message")sunflushed,messagez)import sys; sys.exit("surrogates:\uDCFF")ssurrogates:\udcffzimport sys; sys.exit("h\xe9")shzlatin-1)PYTHONIOENCODING)rrrr
SystemExitassertIsNonerAr(rrr)rcmrrrhrs`     r	test_exitzSysModuleTest.test_exits))SXr2666

z
*
*	bHJJJ															",+,,,'.FGGCQc"""c"""

z
*
*	bHRLLL															*B///

z
*
*	bHUOOO															*B///

z
*
*	bHV															*F333

z
*
*	bHX															*H555-T3IJJCR   c"""c"""	L	L	L	L	L	N 	"	"	"	8!	#	#	#	,y	2	2	2	2	2	2sZA##A'*A'=DD"%D"#FFF	G**G.1G./IIIc|ttjd|tjt
dSrE)rrrgetdefaultencodingrLstrr>s rtest_getdefaultencodingz%SysModuleTest.test_getdefaultencodingsB)S%;R@@@c466<<<<<r2ct|ttj|ttjd|ttjd|ttjdtj}||dk|	ddd|fD]=}tj||tj|>	tj|dS#tj|wxYw)Naggg?gh㈵>g?g@)rrrsetswitchintervalr.getswitchintervalrassertAlmostEqual)rorigns   rtest_switchintervalz!SysModuleTest.test_switchintervals)S%:;;;)S%:C@@@*c&;TBBB*c&;SAAA$&&s
D)))	(dC-
C
C%a(((&&s'<'>'>BBBB
C
!$'''''C!$''''s
AD!!D7ctj}||t||d|ttjddS)NrHr
)rgetrecursionlimitrLint
assertGreaterrr)rlimits  rtest_getrecursionlimitz$SysModuleTest.test_getrecursionlimits]%''eS)))5!$$$)S%:B?????r2ctj}	tjd|tjd|t
tj|ttjdtj|dS#tj|wxYw)Ni'i)rrsetrecursionlimitrrrr.)r	old_limits  rtest_setrecursionlimitz$SysModuleTest.test_setrecursionlimits)++		-!&)))S244f===i)>???j#*?EEE!),,,,,C!),,,,sBB11CcVttdr(tjr|dtj}fd	dD]}	tj|n#t$rY$wxYw|t5dddn#1swxYwY|t5dddn#1swxYwY	tj|dS#tj|wxYw)Ngettracez(fatal error if run with a trace functioncdSr,r8)rFsrrFz5SysModuleTest.test_recursionlimit_recovery.<locals>.f's
ACCCCCr2)2Kd)rrrskipTestrrRecursionErrorr)rrdepthrFs   @rtest_recursionlimit_recoveryz*SysModuleTest.test_recursionlimit_recovery"s3
##	F	FMMDEEE)++							-1



)%0000%H&&~66ACCC&&~66ACCC


!),,,,,C!),,,,sxDA21D2
A?<D>A??DB3'D3B7	7D:B7	;DC/#D/C3	3D6C3	7DD(cftj}	tj}|tj|5tj|dztj||t5}tj|dzdddn#1swxYwY|t|j
ddddn#1swxYwYtj|dS#tj|wxYw)N)rrrIrHz\cannot set the recursion limit to [0-9]+ at the recursion depth [0-9]+: the limit is too low)rrrget_recursion_depthsubTestrrrassertRegexrrA)rrrrs    rtest_setrecursionlimit_to_depthz-SysModuleTest.test_setrecursionlimit_to_depth;s
)++		-/11EC$9$;$;5II
9
9%eai000%i000&&~665")%!)444555555555555555  R\!2!2"8999
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
!),,,,,C!),,,,sT;DAC9B:.C9:B>	>C9B>	+C9-D9C==DC=DD0ctjtdtj}|t
|d||dt||dt||dt||dt||dt|
ttj
|d||jt||jt||jt||jt||jt||jt||jt||jt||jt||d|j||d|j||d|j||d|j||d|jtj\}}}}}dS)NgetwindowsversionrrHrI)ryr
get_attributerrrlenrLrrr
IndexErroroperatorgetitemmajorminorbuildplatformservice_packservice_pack_minorservice_pack_major
suite_maskproduct_type)rvmajminbuildnoplatcsds       rtest_getwindowsversionz$SysModuleTest.test_getwindowsversionSsi""3(;<<<!##Q###adC(((adC(((adC(((adC(((adC(((*h&61===ags+++ags+++ags+++aj#...anc222a2C888a2C888alC000anc2221qw'''1qw'''1qw'''1qz***1q~...(+'<'>'>$S'4r2c^|ttjtddS)NrI)rrrcall_tracingtyper>s rtest_call_tracingzSysModuleTest.test_call_tracingqs%)S%5tQ?????r2setdlopenflagsztest needs sys.setdlopenflags()c|ttd|ttjdtj}|ttjtj|dz|tj|dztj|dS)Ngetdlopenflagsr
rH)rrrrrrrr)roldflagss  rtest_dlopenflagszSysModuleTest.test_dlopenflagsts	
%566777)S%7<<<%'')S%78888A:&&&+--xz:::8$$$$$r2c|ttjtjd}da|tjd|dzb|tjd|t
tdr.|tjtdSdS)NrHgettotalrefcount)
rrrgetrefcountrrrrLrr)rcs  r
test_refcountzSysModuleTest.test_refcounts	
)S_555OD!!..!444
..2223*++	?!!#"6"8"8#>>>>>	?	?r2c|ttjdd|ttjd|tjjtjj	udS)Nr
i5w)
rrr	_getframer.rr~
test_getframe__code__f_coder>s rrzSysModuleTest.test_getframesr)S]B;;;*cmZ@@@'0}%
&	
	
	
	
	
r2cddlddl}gfd}fd|}||tdd}tj	}|D]3}|
|t||d4
}||||||||}||tju||}||}	t'|	D]\}
\}}}
}|
dkrn|d||d|	|
dz\}}}
}||
d	||d
dg|dS)NrcdSr,r8g456srf123z/SysModuleTest.test_current_frames.<locals>.f123DFFFFFr2cdSr,)append	get_identsetwait	entered_gleave_gthread_info	threadingsrrz/SysModuleTest.test_current_frames.<locals>.g456sAy2244555MMOOOLLNNNNNr2targetrHr)didn't find f123() on thread's call stackg456()rzleave_g.wait()zentered_g.set())r	tracebackEventThreadstartrrrr_current_framesrLrrrrtpoprr
extract_stack	enumeratefailrjoin)rrrt	thread_iddtidmain_idframestackifilenamelinenofuncname
sourcelinerrrrrs               @@@@@rtest_current_framesz!SysModuleTest.test_current_framess	
OO%%	//##													

D))				
	
[))1---N	!!	'	'C!!#s+++sA&&&&%%''

gq!!!

i###g0111
i  ''..;DU;K;K	C	C7A7&(J6!!"
IIABBBX...27qs.&(J6***

j#35F"GHHH	


	r2cddlddl}gfd}fd|}||tdd}tj	}|D]3}|
|t||d4
}|||||||d||||\}}	}
||
j}t%|D]\}\}
}}}|dkrn|d||d	||dz\}
}}}||d
||d|dS)NrcdSr,r8rsrrz3SysModuleTest.test_current_exceptions.<locals>.f123rr2c		td#t$r&t
jrYdSYnwxYwD)NToops)timeout)rrrr.rrLONG_TIMEOUTrsrrz3SysModuleTest.test_current_exceptions.<locals>.g456sy2244555MMOOO
$V,,,!||G,@|AA
sA*A>=A>rrHr<rrrrzif leave_g.wait()rrrrrrrrr_current_exceptionsrLrrrrtrrtb_framerrrrrr)rrrrrrr	r
exc_type	exc_valueexc_tbrr
rrrrrrrrrs                 @@@@@rtest_current_exceptionsz%SysModuleTest.test_current_exceptionss	
OO%%	//##													
D))				
	
[))1---N	#%%	'	'C!!#s+++sA&&&&%%''

gq!!!

i###+QUU7^^<<<
'(eeI&6&6#)V''88;DU;K;K	C	C7A7&(J6!!"
IIABBBX...27qs.&(J6***
--.@AABBB	


	r2c\|tjt|tjt
tjD]}||t|tjt
tjD]}||t|tj	d|tj
t|tjt|tj
t|tjt|tjt|t#tjd|tjjd|t#tjd|tjjdzdk|tjjdk|tjjd|tjjd	|tjjtjj|t9tjjt|t9tjjt|tjjt|tjjt|tjt|t#tjd
|tjj dtjj!ztEdd	D]k}|tG|tjj dz
tjj dd$tjj l|tjj%t|tjj&t|tjj'ttQj)d}tjj*d
vr|tjj+ddh|tjj,hd|dkr&|tjj*dn|dkr&|tjj*dnj|dkr&|tjj*dn>|tjj*hd
n||d|tjj-d|tjj-d|tj.t|tj/t|tj/d|tj0t|tj1t|tj2t|tj3t|tj4ttj5}||ddt|t#|d||dt||dt||dt||dd||dt||j6t||j7t||j8t||j9d||j:t||d|j6||d|j7||d|j8||d|j9||d|j:||dk|tj;t|tj;dtj0<ds'|tj=tdSdS)N)littlebigrIrrrrHir	z'sys.hash_info.modulus {} is a non-primePy_HASH_ALGORITHM>fnv	siphash13	siphash24 @>r(r)r'r%rr&ialphabeta	candidatefinal)rHrr)shortlegacywin)>rLrapi_versionrargvlistr	orig_argvrt	byteorderbuiltin_module_namestuple	copyrightexec_prefixbase_exec_prefix
executablerr
float_inforadixint_inforbits_per_digitsizeof_digitassertGreaterEqualdefault_max_str_digitsstr_digits_check_thresholdrr
hexversion	hash_info
assertLessmoduluswidthrangepowformatinfnanimag	sysconfigget_config_var	algorithm	hash_bits	seed_bitscutoffmaxsize
maxunicoderprefixbase_prefix
platlibdirversionversion_inforrmicroreleaselevelserialfloat_repr_stylerabiflags)rargxalgovis     rtest_attributeszSysModuleTest.test_attributesscos333ch---8	,	,C!!#s++++cmT222=	,	,C!!#s++++

cm%6777c6>>>cmS111cos333c2C888cnc222S^,,b111-q111S\**A...3a71<===1Q6777 CSIII GMMM3<><B	D	D	Dcl9::C@@@cl788#>>>clA3GGGclEsKKKcnc222S]++Q///
-q#-2E/EFFFq#		AAs},Q.
0EFF9@@M)++



	
cm/555cm/555cm0#666'(;<<="&GGGMM#-1B8<<<MM#-1===AAAqyy  !8+FFFF  !8%@@@@  !8+FFFF

cm57X7X7XYYYY
T1%%%
 4a888
,a000ck3///cnc222222clC000cj#...cos333cnc222ck3///

beU+++R!$$$beS)))beS)))beS)))

beDEEEbeS)))bh,,,bh,,,bh,,,

bo'NOOObi---A)))A)))A)))A000A	***W%%%c2C888

c*,?@@@|&&u--	5!!#,44444	5	5r2cZtj}|t|d||jd||jdtjdr||jddStjdkr||jddStjdkr||jdd	hdStjd
kr||jd	dSdS)Nr)ntpthread
pthread-stubssolarisN)	semaphorez
mutex+condN)linuxfreebsdrkwin32rj
emscriptenrlwasi)	rrrrrtnamelockrr)rinfos  rtest_thread_infozSysModuleTest.test_thread_info}sTA&&&

di!TUUU

di!BCCC<""#788	9TY	22222
\W
$
$TY-----
\\
)
)MM$)i%ABBBBB
\V
#
#TY88888$
#r2zonly available on Emscriptenc|ttjd|tjjt|tjjttdf|tjj
t|tjjtdS)Nr)
rrr_emscripten_inforLemscripten_versionr:runtimerrpthreadsbool
shared_memoryr>s rtest_emscripten_infoz"SysModuleTest.test_emscripten_infosS122A666c2EuMMMc2:S$t**<MNNNc2;TBBBc2@$GGGGGr2cn|tjjtjjdSr,)rr
__stdout__encoding
__stderr__r>s r
test_43581zSysModuleTest.test_43581s*	
0#.2IJJJJJr2ctdz
a|ttjdttz}|tj||u|}|tj||uGddt
}|ttj|ddS)NrHznever interned beforeceZdZdZdS)$SysModuleTest.test_intern.<locals>.ScdS)Nrmr8r>s r__hash__z-SysModuleTest.test_intern.<locals>.S.__hash__sr2N)r5r6r7rr8r2rSr#




r2rabc)INTERN_NUMRUNSrrrinternrrswapcase)rss2rs    rtest_internzSysModuleTest.test_interns!)SZ000#c.&9&99
1

*+++
ZZ\\
"
"
$
$
2!+,,,									
)SZ5:::::r2c	d|tjd}|D]~}|ttj|||dvrtnt
}|tttj||||ttj|ttjt||tjjhddS)N)debuginspectinteractiveoptimizedont_write_bytecodeno_user_siteno_siteignore_environmentverbose
bytes_warningquiethash_randomizationisolateddev_mode	utf8_modewarn_default_encoding	safe_pathint_max_str_digits)rr>rrHrI)
rrflagsrr}rrrgetattrreprrrtr)rattrsattr	attr_types    rtest_sys_flagszSysModuleTest.test_sys_flagss	"""M	N	NDOOGCIt44d;;; $(A A AsIT'#)T":":;;YMMMMSY(((SYU444

ci)99955555r2c4|}t|}|t5||dddn#1swxYwY|t5|||ddddS#1swxYwYdSr,)rrr__new__)rsys_attrrdrs    rassert_raise_on_new_sys_typez*SysModuleTest.assert_raise_on_new_sys_typesNN	


y
)
)		IcNNN															


y
)
)	.	.i---	.	.	.	.	.	.	.	.	.	.	.	.	.	.	.	.	.	.s#AAA)B

BBcD|tjdSr,)rrrr>s rtest_sys_flags_no_instantiationz-SysModuleTest.test_sys_flags_no_instantiations))#)44444r2cD|tjdSr,)rrr^r>s r&test_sys_version_info_no_instantiationz4SysModuleTest.test_sys_version_info_no_instantiations))#*:;;;;;r2ctjtd|tjdS)Nr)ryrrrrrr>s r+test_sys_getwindowsversion_no_instantiationz9SysModuleTest.test_sys_getwindowsversion_no_instantiations>""3(;<<<))#*?*A*ABBBBBr2c,tjdSr,)r_clear_type_cacher>s rtest_clear_type_cachez#SysModuleTest.test_clear_type_cachesr2cttj}d|d<tjt
jddgtj|}|d	}dtj
zd}|||d|d<tjt
jddgtj|}|d	}||d	d
|d<tjt
jddgtjtj|}|\}}||d|
d
||
d|d|d<tjt
jddgtjtj|}|\}}||d|
d
||
d|d|d<tjt
jddgtj|}|d	}||ddS)Ncp424rrzprint(chr(0xa2))renvr¢z
ascii:replace?r)rrwrr2sUnicodeEncodeError:s'\xa2'zascii:z:surrogateescapezprint(chr(0xdcbd)))dictosenviron
subprocessPopenrr>PIPEcommunicatestriplinesepencoderrt)rrprrrhs      rtest_ioencodingzSysModuleTest.test_ioencodings2:
#*cnd4FG&0o3
@
@
@mmooa &&((RZ'//88h'''"1cnd4FG&0o3
@
@
@mmooa &&((d###")cnd4FG$.OJO!$
&
&
&==??Sc"""

,c222

j#&&&"*cnd4FG$.OJO!$
&
&
&==??Sc"""

,c222

j#&&&"4cnd4HI$.O
>
>
>mmooa &&((g&&&&&r2z*requires OS support of non-ASCII encodingsFz$requires FS encoding to match localectttj}d|d<tjt
jddtjzgtj	|}|
d}||tj
tjdS)Nrrrz	print(%a)rr)rrrrrrr>rFS_NONASCIIrrrrfsencode)rrrrs    rtest_ioencoding_nonasciiz&SysModuleTest.test_ioencoding_nonasciis2:"$cnd +i.C CE'1C
A
A
Ammooa &&((bk)*?@@AAAAAr2zTest is not venv-compatiblec
|tjtjtjtjtjtj}tj	gdtjtj
|}|d}|
d}|||dt!tjddgdS)N)nonexistentrzEimport sys; print(sys.executable.encode("ascii", "backslashreplace")))r>rcwdrASCIIzb''rbackslashreplace)rrpathabspathrr>dirnamerealpathrrrrrdecoderrtrr)r
python_dirrrr>s     rtest_executablezSysModuleTest.test_executables
	
88#.IIIW__RW%5%5cn%E%EFF

V
V
V~jo:
O
O
O#\\^^**733
	

j5$s~/D/DWN`/a/a*b*b"cdddddr2Nc||tj||r|||dSdSr,)assertIsNotNonecodecslookuprrfs_encodingrs   rcheck_fsencodingzSysModuleTest.check_fsencoding(sT[)))
k"""	4[(33333	4	4r2ctj}tjdkrd}nd}|||dS)Ndarwinzutf-8)rgetfilesystemencodingrrrs   rtest_getfilesystemencodingz(SysModuleTest.test_getfilesystemencoding.sE/11<8##HHHk844444r2ctj}||d<d|d<dd}tjddd|g}|r|d	|||d
<n|d
dtj	|tj
tj|d}|\}}	|S)
NLC_ALL0PYTHONCOERCECLOCALE
)
import syszdef dump(name):z    std = getattr(sys, name)z(    print("%s: %s" % (name, std.errors))z
dump("stdin")zdump("stdout")zdump("stderr")-Xzutf8=0r-IrT)rrwruniversal_newlines)
rrcopyrrr>rrrrrSTDOUTr)
rlocalerrrr(argsrrrws
          rc_locale_get_error_handlerz(SysModuleTest.c_locale_get_error_handler6sjooH
%(!"yy
hd;	KK&.C"##GG&---T%/_%/%6"%15	
7
7
7

r2c"||d}||d||d}||d||d}||d||d	}||d||d
}||d||d}||ddS)NT)rzHstdin: surrogateescape
stdout: surrogateescape
stderr: backslashreplace
z:ignore)rz6stdin: ignore
stdout: ignore
stderr: backslashreplace
z	iso8859-1z6stdin: strict
stdout: strict
stderr: backslashreplace
z
iso8859-1::r)rr)rrrs   rcheck_locale_surrogateescapez*SysModuleTest.check_locale_surrogateescapeSs`--ft-DD6	7	7	7--fy-II6	7	7	7--f{-KK6	7	7	7--f|-LL6	7	7	7--fs-CC6	7	7	7--fr-BB6	7	7	7	7	7r2c0|ddS)NCrr>s rtest_c_locale_surrogateescapez+SysModuleTest.test_c_locale_surrogateescapeys))#.....r2c0|ddS)NPOSIXrr>s r!test_posix_locale_surrogateescapez/SysModuleTest.test_posix_locale_surrogateescape}s))'22222r2c@ddddd}|ttjd|ttjd|ttjd|ttjd	tjj}||dd
|j|jf|jdz|jdzz|jd
zz||j	dzz|j
dzz}|tjj||tjjtjj
dS)N
r"r,rtr]rG	cache_tagrIr+rr)rrrimplementationr]rrrr_r`rarGrtlower)rlevelsr]rGs    rtest_implementationz!SysModuleTest.test_implementationsn#LL 2F;;<<< 2I>>??? 2LAABBB 2K@@AAA$,!w}gm&DEEEmr)GMR,??mq()+1'2F+G1+LMn)*
	
+6
CCC	
+0+06688	:	:	:	:	:r2czddlm}ddg}||\}}}tjdkrqt	jd}t	jd}|r|d||r|d	||s|s|||ttj
d
dS)Nr)rrz#import sys; sys._debugmallocstats()rqWITH_FREELISTS
WITH_PYMALLOCsfree PyDictObjectssSmall block thresholdT)test.support.script_helperrrrrRrSrtassertFalserr_debugmallocstats)rrrretrrhwith_freelists
with_pymallocs        rtest_debugmallocstatsz#SysModuleTest.test_debugmallocstatss	@?????;<(($/
S#<7""&56FGGN%4_EEM
:

3S999
=

6<<<!
&-
&  %%%	
)S%:DAAAAAr2getallocatedblocksz0sys.getallocatedblocks unavailable on this buildc	ddl}	|}|dv}n<#t$r}d}Yd}~n+d}~wwxYw#t$rt	j}YnwxYwt
j}|t|t|r||dn||d	|
|t
jn#t$rYnwxYwt!jt
j}|||t!jt
j}||t)|dz
|dzdS)Nr)pymallocpymalloc_debugTr)	_testcapipymem_getallocatorsnamerImportErrorrrrrrMrrrrDrIrAttributeErrorgccollectassertLessEqualrtrL)rr
alloc_namerr[rbrs        rtest_getallocatedblocksz%SysModuleTest.test_getallocatedblockss	O
O&>>@@

",/M!M

	 
%
%
% $






%	4	4	4#133MMM	4
"$$

d1ggs###	*q!$$$$

##Aq)))	
OOAs3556666			D		
"$$Q"""

"$$

aq2vq2v../////s19 
616AA'C//
C<;C<c|tjdd}td|\}}}||ddS)NFaif 1:
            import sys

            class AtExit:
                is_finalizing = sys.is_finalizing
                print = print

                def __del__(self):
                    self.print(self.is_finalizing(), flush=True)

            # Keep a reference in the __main__ module namespace, so the
            # AtExit destructor will be called at Python exit
            ref = AtExit()
        rsTrue)rMr
is_finalizingrrrstriprr(rrrws     rtest_is_finalizingz SysModuleTest.test_is_finalizingsb

c'))5111
.dD99FF'22222r2cd}td|\}}}|}|d|d|d|ddS)Nzif 1:
            import sys
            class A:
                def __del__(self, sys=sys):
                    print(sys.flags)
                    print(sys.float_info)
            a = A()
            rs	sys.flagsrssys.float_inforH)r
splitlinesrtrr(rrrhs     rtest_issue20602zSysModuleTest.test_issue20602sf(d33Cnn

lCF+++

'Q00000r2cd}td|\}}}||d||d||ddS)Nzif 1:
            import struct, sys

            class C:
                def __init__(self):
                    self.pack = struct.pack
                def __del__(self):
                    self.pack('I', -42)

            sys.x = C()
            rrr2)rrr&r's     r&test_sys_ignores_cleaning_up_user_dataz4SysModuleTest.test_sys_ignores_cleaning_up_user_datasy
.dD99FFQ#...#.....r2getandroidapilevelzneed sys.getandroidapilevel()ctj}||t||ddS)Nr)rr/rLrr)rlevels  rtest_getandroidapilevelz%SysModuleTest.test_getandroidapilevelsD&((eS)))5!$$$$$r2c|dfd}gd}|d||d||d|dd|ddz|d|dd|ddz|d|d	g|d	|d	g|dd
z||d	d
z|d	g|d|dS)Nzif 1:
            import sys
            def f1():
                1 / 0
            def f2():
                f1()
            sys.tracebacklimit = %r
            f2()
        ctjtjd|zgtj}|d}||dS)Nr)rwrH)rrrr>rrrr*)tracebacklimitrrrr(rs    rcheckz4SysModuleTest.test_sys_tracebacklimit.<locals>.checksg #.$~8M!N(2999A--//!$CS^^--x88888r2)s"Traceback (most recent call last):s&  File "<string>", line 8, in <module>s   File "<string>", line 6, in f2s   File "<string>", line 4, in f1s#ZeroDivisionError: division by zerorrrIrHrrr8)rr6rr(s`  @rtest_sys_tracebacklimitz%SysModuleTest.test_sys_tracebacklimits(	9	9	9	9	9	9


		b)
a
a2A2122.///
a2A2122.///
a)B-!!!
b9R=/"""
agy!!!
b$h2(((
dIr2c|ttjtt	tjdSr,)rrr	meta_pathrr>s rtest_no_duplicates_in_meta_pathz-SysModuleTest.test_no_duplicates_in_meta_path4s:S]++SS]1C1C-D-DEEEEEr2_enablelegacywindowsfsencodingz*needs sys._enablelegacywindowsfsencoding()cd}tdd|\}}}|dd}||ddS)N)rz$sys._enablelegacywindowsfsencoding()zCprint(sys.getfilesystemencoding(), sys.getfilesystemencodeerrors())rz; rreplacezmbcs replace)rrrr&rr+s     r#test__enablelegacywindowsfsencodingz1SysModuleTest.test__enablelegacywindowsfsencoding7sfW(diioo>>Cjj),,3355n-----r2cDtjd}tjdddd|dg}t	j|ddd}t
ddgt
|g}||j	
||dS)	Nz]
            import sys
            print(sys.argv)
            print(sys.orig_argv)
        rrutf8rrdT)r6capture_outputrn)textwrapdedentrr>rrunrrrr&r*)rr(rprocrs     rtest_orig_argvzSysModuleTest.test_orig_argvAs 


dFD$F~d$t$OOO$JJ
	
++--88::H					r2c|tjttjD]}||tdSr,)rLrstdlib_module_names	frozensetr)rrts  rtest_module_nameszSysModuleTest.test_module_namesQsPc5yAAA+	-	-D!!$,,,,	-	-r2chtjd}t|dd}|r|j|sd}|r|j|nd}||jtj	|j|dS)Nr__file__)
rimport_fresh_modulerrexistsrrnormpathr_stdlib_dir)rrmarkerrs    rtest_stdlib_dirzSysModuleTest.test_stdlib_dirVs

.t
4
4Z..	"'..00	F.4>27??6***$))#/::))(33	5	5	5	5	5r2r,)FN)Hr5r6r7rrrrrrrryrcpython_onlyrrrunittest
skipUnlessrrr
refcount_testrrrreap_threadsrequires_working_threadingrrrhrw
is_emscriptenrrrrrrrrrrequires_subprocessrrrrrgetpreferredencodingrskipIfr[rZrrrrrrrrrr#r(r,r.r2r8r;r?rGrKrSr8r2rr~r~s%%%@2@2@2D===
(
(
(@@@	-	-	----2
\---.???<@@@X&677:<<%%<<%
\
?
? 
?


"0022>>32#">@"0022@@32#"@D]5]5]5~999X.0NOOHHPOHKKK
;;;(666"...555<<<CCC

\   !W "")')'#")'VX.EGGX22448S8STY8Z8ZZ?AA W ""BB#"AAGG
BX_S_
2244 W ""ee#"44e(4444555:$7$7$7L!W ""//#"/!W ""33#"3:::,
\BBB*X&:;;KMM%0%0MM%0N333*
1
1
1///"X&:;;8::%%::%
!W ""#"BFFFX&FGGEGG..GG.!W ""

#"
---
55555r2r~c8eZdZdZdZdZdZdZdZdZ	dS)	UnraisableHookTestcddl}ddl}d|}	|||||t	|||j||d}S#d}wxYw)NrException ignored )rr
exc_tracebackerr_msgobject)rtypeswrite_unraisable_excSimpleNamespacerrN)rr[rcr/rreerr_msg2s       rrfz'UnraisableHookTest.write_unraisable_excbs111		**3===(($s))367:7H1903	)55CC$CJJJJsAAAc	dD]P}||5d}tjd5}tjt
dt
j5|td||dddn#1swxYwYdddn#1swxYwY|	}||
d|d|d	|n|
d
|d	||
d||
d|dddn#1swxYwYRdS)
N)Nz
original hook)rcz	an objectrwunraisablehookr
raz: rzException ignored in: #Traceback (most recent call last):
rc)rryrrzr3r__unraisablehook__rfr.rrt)rrcr/rwrhs     rtest_original_unraisablehookz/UnraisableHookTest.test_original_unraisablehookqs7.	7	7Gg..
7
7!\11(;;Pv//5E030FHHPP11*R..'3OOOPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP
oo''&MM"Kw"K"K#"K"K"KSQQQQMM"D3"D"D"DcJJJ

DcJJJ

0#666
7
7
7
7
7
7
7
7
7
7
7
7
7
7
7	7	7sY"E1B7/%B 	B7 B$
$B7'B$
(B7+E7B;;E>B;?A=EE	E	c	Gdd}GddtGfdd}||fD]}||5|}tj5}tjtdtj5~dddn#1swxYwYdddn#1swxYwY|}|	d||	|j
j||	d	||	d
|||ur-|	d||	d|n,|	d||	d
|||
ddddn#1swxYwYdS)NceZdZdZdS)FUnraisableHookTest.test_original_unraisablehook_err.<locals>.BrokenDelc$td}|)N
del is brokenr-rr[s  r__del__zNUnraisableHookTest.test_original_unraisablehook_err.<locals>.BrokenDel.__del__s 11	r2Nr5r6r7rtr8r2r	BrokenDelrps#




r2rvceZdZdZdS)OUnraisableHookTest.test_original_unraisablehook_err.<locals>.BrokenStrExceptionc td)Nzstr() is brokenrKr>s r__str__zWUnraisableHookTest.test_original_unraisablehook_err.<locals>.BrokenStrException.__str__s 1222r2N)r5r6r7r{r8r2rBrokenStrExceptionrxs#
3
3
3
3
3r2r|ceZdZfdZdS)OUnraisableHookTest.test_original_unraisablehook_err.<locals>.BrokenExceptionDelc}|r,r8)rr[r|s  rrtzWUnraisableHookTest.test_original_unraisablehook_err.<locals>.BrokenExceptionDel.__del__s((**	r2Nru)r|srBrokenExceptionDelr~s.






r2rrjzException ignoredztest_sys.pyz	raise excz<exception str() failed>r.rrr)rKrryrrdr3rrlrrtrtr7rrf)rrvr
test_classr/rwreportr|s       @r test_original_unraisablehook_errz3UnraisableHookTest.test_original_unraisablehook_errs									3	3	3	3	3	3	3	3										%&89	7	7Jj))
7
7 jll\1133v\++C1A,/,BDD	 **

16:::

j0=vFFF

mV444

k6222!333MM"6???MM"<fEEEEMM,777MM/6::: 5 5666'
7
7
7
7
7
7
7
7
7
7
7
7
7
7
7	7	7s[
)G61C'B5	)C5B9
9C<B9
=CGCGCC>GG"	%G"	c	Gdd}dD]^}||5||jj_tj5}tjtdtj	5|
|jdd}dddn#1swxYwYdddn#1swxYwY|}||jjj
||dvr||d	z|n||d	z|dddn#1swxYwY`dS)
Nc(eZdZGddZdS)MUnraisableHookTest.test_original_unraisablehook_exception_qualname.<locals>.Ac*eZdZGddeZdS)OUnraisableHookTest.test_original_unraisablehook_exception_qualname.<locals>.A.BceZdZdS)QUnraisableHookTest.test_original_unraisablehook_exception_qualname.<locals>.A.B.XNr5r6r7r8r2rXrsDr2rN)r5r6r7rKrr8r2rBrs>	r2rN)r5r6r7rr8r2rArs<









r2r)r__main__some_module)
moduleNamerjrlr/)rr.)rrrr6ryrrdr3rrlrfrrtr7assertNotIn)rrrrwrrs      r/test_original_unraisablehook_exception_qualnamezBUnraisableHookTest.test_original_unraisablehook_exception_qualnames2
								
@	<	<J44

<

<#- \1133vt|?U?U)3+A@@ $88  H **

ace0&999!999$$Z#%5v>>>>MM*s"2F;;;

<

<

<

<

<

<

<

<

<

<

<

<

<

<

<	<	<sZ0E#1C
/C	9CC	
	CC	

CE#C  E##C $A3E##E'	*E'	cBtd}tjtdtj5|t5t	j|dddn#1swxYwYddddS#1swxYwYdS)Nr
rj)	r.ryrr3rrlrrrjrss  r'test_original_unraisablehook_wrong_typez:UnraisableHookTest.test_original_unraisablehook_wrong_typesnn
\
#
#C)9$'$:<<	(	(""9--
(
("3'''
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(	(	(	(	(	(	(	(	(	(	(	(	(	(	(	(	(	(	(s6BA<0B<B	BB	BBBc	dfd}t}	tjtd|5|t
dd|}dD]7}|t|t|||f8	dddn#1swxYwYd}ddS#d}dwxYw)Nc|dSr,r8)r	hook_argss r	hook_funcz@UnraisableHookTest.test_custom_unraisablehook.<locals>.hook_funcsIIIr2rjr
zcustom hookz/exc_type exc_value exc_traceback err_msg object)
rdryrr3rrfr.splitrr)rrr/rrrs     @rtest_custom_unraisablehookz-UnraisableHookTest.test_custom_unraisablehooksL						hh	''-=yII
<
<44Z^^5BCIIMSSUU<<D$$WY%=%=%,Xt%<%<&/%:<<<<<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<HIIIHIs/&C
A1B<0C
<CC
CC

Ccd}tjd5}tjtd|5|t
ddddddn#1swxYwYdddn#1swxYwY|}|d|d||d||d	|dS)
Nc td)Nzhook_func failedrz)rs rrzEUnraisableHookTest.test_custom_unraisablehook_fail.<locals>.hook_funcs.///r2rwrjr
zcustom hook failz)Exception ignored in sys.unraisablehook: rrkzException: hook_func failed
)	ryrrzr3rrfr.rrt)rrrwrhs    rtest_custom_unraisablehook_failz2UnraisableHookTest.test_custom_unraisablehook_fails	0	0	0\
)
)(
3
3	Dv''-=yII
D
D))*R..*<dDDD
D
D
D
D
D
D
D
D
D
D
D
D
D
D
D	D	D	D	D	D	D	D	D	D	D	D	D	D	D	D
oo

)")))				


<cBBB

5s;;;;;s5'B
%A;/B;A?	?BA?	BBBN)
r5r6r7rfrmrrrrrr8r2rr_r_`s~


777$&7&7&7P<<<4(((*<<<<<r2r_cleZdZdZejjZdZdZdZ	fdZ
dZdZdZ
d	Zd
ZxZS)
SizeofTestctjd|_tjj|_ddl}|j|_	dS)NPr)
structcalcsizerrrArC	longdigit_testinternalcapiSIZEOF_PYGC_HEADgc_headsize)rrs  rsetUpzSizeofTest.setUps<%%2    ,=r2ctjj}|j}|tjd|d|jz|tjg|d|zdS)NTrPn)ryrcalcvobjsizerrr	getsizeofr)rvsizegc_header_sizes   rtest_gc_head_sizezSizeofTest.test_gc_head_sizesv))t,,eeBii$..HIIIr**EE$KK.,HIIIIIr2cGdd}|ttj|Gdd}|ttj|dg}|tj|||Gdd}|ttj||tj|||Gdd	t}|tj|tjtj|j	z|t5tj|tjd
zdddn#1swxYwY|t5tj|ddddn#1swxYwY|ttf5tj|tjd
z
ddddS#1swxYwYdS)NceZdZdZdS))SizeofTest.test_errors.<locals>.BadSizeofctr,r-r>s r
__sizeof__z4SizeofTest.test_errors.<locals>.BadSizeof.__sizeof__s  r2Nr5r6r7rr8r2r	BadSizeofr#
!
!
!
!
!r2rceZdZdZdS)-SizeofTest.test_errors.<locals>.InvalidSizeofcdSr,r8r>s rrz8SizeofTest.test_errors.<locals>.InvalidSizeof.__sizeof__
str2Nrr8r2r
InvalidSizeofrs#




r2rsentinelceZdZdZdS)+SizeofTest.test_errors.<locals>.FloatSizeofcdS)Ng@r8r>s rrz6SizeofTest.test_errors.<locals>.FloatSizeof.__sizeof__rr2Nrr8r2rFloatSizeofrrr2rceZdZdZdS).SizeofTest.test_errors.<locals>.OverflowSizeofc t|Sr,)rr>s rrz9SizeofTest.test_errors.<locals>.OverflowSizeof.__sizeof__s4yy r2Nrr8r2rOverflowSizeofrrr2rrHr7)rr.rrrrMrrrXr
OverflowError)rrrrrrs      rtest_errorszSizeofTest.test_errorssH	!	!	!	!	!	!	!	!	
*cmYY[[AAA									
)S]MMOODDD<

cmMMOOX>>III									
)S]KKMMBBB

cmKKMM8<<hGGG	!	!	!	!	!S	!	!	!	
~~ck'B'BCCt'77	9	9	9


}
-
-	;	;M..q99:::	;	;	;	;	;	;	;	;	;	;	;	;	;	;	;


z
*
*	.	.M..,,---	.	.	.	.	.	.	.	.	.	.	.	.	.	.	.



M:
;
;	<	<M..#+)9::;;;	<	<	<	<	<	<	<	<	<	<	<	<	<	<	<	<	<	<s6+GGG-HHH,I<<JJctjj}|t	jd|d|jz|t	jdd|d|jzdS)NTrr7)ryrrrrrr)rsizes  rtest_defaultzSizeofTest.test_default%sr|(t,,dd2hh.GHHHtR00$$r((T^2KLLLLLr2c	x!"#tj}tjj#tjj}j!!d|djz!d|djz!t#ddddzg}|D];}t|}!||d|
z<!tt#d	!d|d
dz!d|d
d
zd}!|jd#dfd}||j
#d||j
#dd}||j
#d|d
z!tdd#d!tj#dddl}	!|	jj#dddl}
!|
jj#d!t.j#d!ij#d!i#d!ddi#d|t4zdzd|dzzdt7dD}!|#d|t4zdzd|dzz!ddi#d|t4zdzd|d zzdd!d"d#dd$d%dd&}!|#d|t4zdzd|d zz!i#d!i#d!i#d!ti#d'!ti#d'!ti#d'!ti#d'Gd(d)t>}!|j #d!tC#d*!tEddddd#d+!tGddddd#d+!tIdddd#d+!tJ#dddl&}
ddl'}|
j(|j)j*}!|#d,!tWg#d-!tYd#d	!t[d#d.!t\j/|dj0tt\j/zzd/}|}!|#d0d1}!|#d2G!#fd3d4}d5}!|#d6!td7#d8ddl1}!|2dd#d!tgg|d9!tgdg|d9d!j0zz!tgdd!g|d9d!j0zz!tggd:|d9d#j0zz!tg#d8!tYg#d	!d|djz!d|djz!d;|djzd!t\j4j5z}!t/||dd!jzz!t/|d!zdz
|dd!jzz!t/|d!z|dd"jzz!tl#d<!d#d!tn#d!t?#dG!#fd=d)t>}!tt7d#d>!tYd#d	!t7d#d?!t7d@#d?d}gt7dt7dAg}#dB|d	zzdCz}|D]}t|}|dkrd}|d!z}|}||kr|dz}||k|dkr3!tq||!ts||j!tq||||d	zz!ts||||d	zz!ttq#dD!tud#dE!twt.#dE!dF|d!d:|dd"j0zzdG}|d|z}!t.|||dHz}GdIdJt>"!"||t4zdKzdL|dzz"fdMt7dND!"j #dj0z"}dx|_<x|_=x|_>x|_?x|_@x|_Ax|_B|_C!"||t4zdKzdL|dzz!"j #dj0zgdO}dP}|dQz}|dz}|D]}tt|}|dRkr#|t|zdz}nn|dSkr#|t|zdz}nI|dTkr"#|d!t|dzzz}n!#|d#t|dzzz}!||tdU}!|#|d#zt|dVdW!|#|d#zd#zddlH} !| It.#dX!| Jt.#dXdS)YNTrF5Pr2uin2PinPrrHs
xxxxxxxxxxr"cdfd}|S)Nr
cSr,r8resrinnerz<SizeofTest.test_objecttypes.<locals>.get_cell.<locals>.innerDr2r8)rres @rget_cellz-SizeofTest.test_objecttypes.<locals>.get_cellBs&A




Lr2rrcXtj||dSr,)rDrr)r
expected_sizers  rcheck_code_sizez4SizeofTest.test_objecttypes.<locals>.check_code_sizeIs)##CM!$4$4mDDDDDr26i13Pcfd}|S)NcSr,r8rsrrz=SizeofTest.test_objecttypes.<locals>.get_cell2.<locals>.innerNrr2r8)rers` r	get_cell2z.SizeofTest.test_objecttypes.<locals>.get_cell2Ms!




Lr22d3PPP3PP3P2P2PnQ2Prr+rc.i|]}t||Sr8)r).0r
s  r
<dictcomp>z/SizeofTest.test_objecttypes.<locals>.<dictcomp>fs 000!CFFA000r2rrn2PrIrr)rHrIrrrrrr+P2nPnceZdZdS)&SizeofTest.test_objecttypes.<locals>.CNrr8r2rrr{r2r6Pbz	6Pb 2P2nP32B2iBn4Prc(tjSr,)rrr8r2rfuncz)SizeofTest.test_objecttypes.<locals>.funcs=??"r2z3Pi3c7P2ic??2PcdSr,r8r8r2rrz)SizeofTest.test_objecttypes.<locals>.funcsr214PiceZdZedZedZededdS)&SizeofTest.test_objecttypes.<locals>.ccdSr,r8r8r2rfooz*SizeofTest.test_objecttypes.<locals>.c.foor2cdSr,r8)clss rbarz*SizeofTest.test_objecttypes.<locals>.c.barrr2PPN)r5r6r7staticmethodrclassmethodrr6rsrrrsy


\



[

E#ttDzz"""E#ttDzz"""""r2rc3KdVdS)NrHr8r8r2rget_genz,SizeofTest.test_objecttypes.<locals>.get_gensQwwwwwr2zP2P4P4c7P2ic??PrlPr)rHrIrr7PnPPPcheZdZdZdZdZeeeedZeddS)rc|jSr,_C__xr>s rgetxz+SizeofTest.test_objecttypes.<locals>.C.getxs48Or2c||_dSr,r)rvalues  rsetxz+SizeofTest.test_objecttypes.<locals>.C.setxse4888r2c
|`dSr,rr>s rdelxz+SizeofTest.test_objecttypes.<locals>.C.delxs
r2r5PiN)r5r6r7r	rrpropertyrersrrz&SizeofTest.test_objecttypes.<locals>.Cs[+++333(((tT2..AE!TT%[[!!!!!r24l4Pir3nP2nPP3n3Pr8P2nPI13Pl4Pn9Pn12PIP4P36P3P10P2P6P1PceZdZdS)2SizeofTest.test_objecttypes.<locals>.newstyleclassNrr8r2r
newstyleclassrrr2rr)r
c$g|]}
Sr8r8)rrrs  r
<listcomp>z/SizeofTest.test_objecttypes.<locals>.<listcomp>s---Q---r2r)d1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111udÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿuPĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀu,￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿ux𐀀𐀀𐀀𐀀𐀀𐀀𐀀𐀀𐀀𐀀𐀀𐀀𐀀𐀀𐀀𐀀𐀀𐀀𐀀𐀀𐀀𐀀𐀀𐀀𐀀𐀀𐀀𐀀𐀀𐀀u􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿􏿿nnbPnPnr*ii@z<stdin>r'2Pn3P)Krrryrcalcobjsizercheck_sizeofrr	bytearray	__alloc__iter__closure__rcomplexrr	datetime	timedeltadayscollectionsdefaultdictdefault_factoryr__add____iter__DICT_KEY_STRUCT_FORMATrLkeysvaluesitemsrd__dict__
BaseExceptionUnicodeEncodeErrorUnicodeDecodeErrorUnicodeTranslateErrorEllipsisrencodings.iso8859_3
charmap_build	iso8859_3decoding_tablerreversedfloatrr?rrefinditerr6rArBrUNotImplementedrrJslicesuperrr"rrrQrFghordmaxchrr&weakrefrefproxy)%rrrsamplessamplererrrr*r-longdictrr	encodingsrrrrBPyLong_BASE
PySet_MINSIZErminusedtmpnewsizefmtoasciifields
compactfields
unicodefieldsmaxcharLrLr6rr	__class__s%`                                @@@rtest_objecttypeszSizeofTest.test_objecttypes*sr?|')!
dEE"II.///
eUU2YY/000	c44::V$	4	4F&!!AE!UU6]]Q[[]]23333
d9;;d,,,
c55::>"""
isb)))			
	hhjj$Q'c333	E	E	E	E	E

+TT']];;;)44==999					*DDMMHHSMM,IJJJ
gallDDJJ'''
cif&&&	
h %ttE{{333
k%5ttE{{CCC
ck44<<(((
bk44::&&&
b$$v,,
sAhVxx0F'G'GG!KvW_W_`dWeWeNeefff00uQxx000
hVxx0F'G'GG"LPWYaYabfYgYgOgghhh
q!fdd6llXX.D%E%EEIVU]U]^cUdUdLddeee1Q!qA;;
hVxx0F'G'GG"LPWYaYabgYhYhOhhiii
bggiic###
biikk4499%%%
bhhjj$$s))$$$
d2hhW

&&&
d27799oottG}}---
d299;;g///
d288::W

...
aj$$s))$$$
moottE{{+++
 RAr22DD4E4EFFF
 S!Q33TT+5F5FGGG
#B1b11443D3DEEE
hR!!!******** F !4!CDD
ah   
immTT%[[)))
hrllDDJJ'''
eAhhS		"""
cneeBii$&3s~3F3F*FFGGG	#	#	#DFF
a&''(((
dDDLL!!!
	#
	#
	#
	#
	#
	#
	#
	#
	#
	#
	#	
ggii/00111
d5kk44::&&&			
bkk"R  $$t**---
d2hhd$$$
dA3iitqx/000
dAq6llEE$KK!DF(2333
d999oouuT{{QtvX5666	d2hhT

###
hrllDDJJ'''
arT^+,,,
arT^+,,,
b%%))dn,---44
c+b		Adn,< <===
c+q."##UU2YY4>1A%ABBB
c+q.!!5599q/?#?@@@
hW

&&&
dDDHH
ndd2hh'''
fhhR!!!	"	"	"	"	"	"	"	"	"	"	"	d588nndd4jj)))
hrllDDJJ'''
eAhhT

###
eEllDDJJ'''
uRyy%)),Dt++e344	E	EF&kkG!||1SaiG#GW$$!Q,W$$!||c&kk1%%%i''++++c&kk1wxx~~'=#=>>>i''WXXd^^-C)CDDDD
d355kk44;;'''
eAhhT

###
eCjj$$t**%%%
b%%))
guuRyy1TV8+,,,%E$*
c1


E#

	*))))F)))
mQ*@!A!AABFHHUYNNIZZ[[[----%**----
mmoo&Vtv(=>>>MOO8999ac9AC9!#99ac9AC!#
mQ*@!A!AABFHHUYNNIZZ[[[
mmoo&Vtv(=>>>
666#e+
%+

	
	A#a&&kkG}}D%%A.23D''#a&&0145D''!SVVaZ.8D''!SVVaZ.8E!QKKKKKK
am$$q()))	9f%%%
am$$q(1,---	
gkk#W

...	gmmC  $$w--00000r2ctj|tj|z}t	j|rt	j|s
||jz
}|tj||dSr,)rrrrr
is_trackedrr)rr/baseextrars     rcheck_slotszSizeofTest.check_slots:sv=&&)?)??
=	)bmD&9&9	)((Hs++X66666r2c^|j}Gddt}||tdGddt}||gdgidGdd	t}||gdGd
dt}||t	dGdd
t
}||tdddlm}Gdd|}||g|gddS)NceZdZdZdS)!SizeofTest.test_slots.<locals>.BArr"rNr5r6r7	__slots__r8r2rBArhD%IIIr2rlrceZdZdZdS) SizeofTest.test_slots.<locals>.DriNrjr8r2rDroGrmr2rprreceZdZdZdS) SizeofTest.test_slots.<locals>.LriNrjr8r2rr^rrJrmr2r^ceZdZdZdS) SizeofTest.test_slots.<locals>.SriNrjr8r2rrrtMrmr2rceZdZdZdS)!SizeofTest.test_slots.<locals>.FSriNrjr8r2rFSrvPrmr2rwr)OrderedDictceZdZdZdS)!SizeofTest.test_slots.<locals>.ODriNrjr8r2rODrzTrmr2r{)rer%rr6rrJr-rx)	rr6rlrpr^rrwrxr{s	         r
test_slotszSizeofTest.test_slots@s 	&	&	&	&	&	&	&	&
bbddIKK&&&	&	&	&	&	&	&	&	&
aa"gggRy$'''	&	&	&	&	&	&	&	&
aacc2t	&	&	&	&	&	&	&	&
aacc355$	&	&	&	&	&	&	&	&
bbddIKK&&&++++++	&	&	&	&	&	&	&	&
bb2hhhb)))400000r2ctjj}tjj}|j}ddl}|||d	t#t$r3tj	d}||||dYnwxYw|tj
|d|jttj
zzdS)NrrrI2P2ir)
ryrr#rr$_astASTrrr=rrr)rrrr6rtbs      rtest_pythontypeszSizeofTest.test_pythontypesXs|')!
dhhjj$$s))$$$	(O	(	(	("B~b$$v,,'''		(	cirTVc#)nn%<<=====sA:BBctj}||j||jd}tj|tj}||j|||d|||jd||ddd}tj|tj}||j|||d|||j|||d|tj|tj}||j||jdS)NcdSr,r8rs r<lambda>z0SizeofTest.test_asyncgen_hooks.<locals>.<lambda>qtr2)	firstiterrrHcdSr,r8rs rrz0SizeofTest.test_asyncgen_hooks.<locals>.<lambda>yrr2)	finalizer)rget_asyncgen_hooksrrrset_asyncgen_hooksrM)roldrhooksrcurs      rtest_asyncgen_hookszSizeofTest.test_asyncgen_hooksls$&&#-(((#-(((#O	3333&((

eoy111

eAh	***

eot,,,

eAh%%%#O	3333&((

eoy111

eAh	***

eoy111

eAh	***$$$&&#-(((#-(((((r2ctjd}td|\}}}||d||ddS)Nz
            import sys
            class MyStderr:
                def write(self, s):
                    sys.stderr = None
            sys.stderr = MyStderr()
            1/0
        rr2)rCrDrrr+s     r/test_changing_sys_stderr_and_removing_referencez:SizeofTest.test_changing_sys_stderr_and_removing_referencesc 

-T488Cc"""c"""""r2)r5r6r7rryrr$rrrr`rer|rrr
__classcell__)r_s@rrrs>>><,LJJJ<<<>MMM
N1N1N1N1N1`7771110>>>()))4#######r2rr)"rrrrrrrrrrRtest.supportryrrrrrrrrCrUrorr2TestCaserr:rar~rTr_rr5mainr8r2r<module>rsw



				



				







""""""NNNNNNNN))))))&&&&&&
!,6,6,6,6,6h',6,6,6\=====8,===@"B"B"B"B"BX&"B"B"BPk5k5k5k5k5H%k5k5k5\N<N<N<N<N<*N<N<N<ba#a#a#a#a#"a#a#a#F
zHMOOOOOr2