403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Python315/Lib/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Python315/Lib/test/__pycache__/test_embed.cpython-315.pyc
R
>lqjPc�J�]QHGs]QHGsGsGsGs]PHs]QH G	s	]PH(s
]PH,s]PH0s]PH4s]PH8s]PH<s]PH@s]PHDs]PHHs]PHLs]PHPs\O*%f\O,Q2g]PH^s\O2Q6Hs]s]s]s]s\O>%c\s L\s \!\Q2s"]s#]s$]s%]s&Qs'\O>%cQLPs(\ORQ	6Xc\OTs+LC\OXOZs.\OXO^s0\OTQ
\.Q\0\(Q0s+\O>%c]L]s1\O>%c]L]s2\OfOi\Oj\OTQ
\OXOZQ\OXO^02s6\OfOo\OfOi\6Q22%fPs6Qs8Qs9Qs:QQ2s;QQ\;\Ox2s=Qs>\O~\PIQ2QQ\;\Ox22s@QQ\;\Ox2sAQQ\;\Ox2sB\CQ6Xc\O�2P!P!\cPsCK.h9h)�)�support)�
import_helper�	os_helper�threading_helper�
MS_WINDOWS)�
namedtupleztest module requires subprocess�darwin�	_stats_onl���t�ntz/python�.z/lib-dynload�python�os.pyzraise SystemExit(123)c���[OOU2o[OOU2]*oUO	2OQO	22!)r�_d)�os�path�basename�splitext�casefold�endswith)�program�names& �$C:\Python315\\Lib\test\test_embed.py�debug_buildrJsL���g�g���w�'�G�
�7�7���G�$�Q�'�D��=�=�?�#�#�D�M�M�O�4�4�c��[[O2o[U2FDoUO	Q2%fJVJ 	U!)�PYTHON)�dictr�environ�list�
startswith)�env�keys  r�remove_python_envvarsr$Ps9��
�r�z�z�
�C��C�y���>�>�(�#�#�����Jrc
�R`�\sQs]YsnQsQsQPQPQ]QPQP-QksQ	sQ
sUs	P!)�EmbeddingTestsMixinc�N�Qo[OO[O2o[
%c6[
[O2%cQLPQ*oV*
oSoL [OOUQ2o[OOVA29Umo[OOU2%fUOQU*2[O2Um[OU2P!)�
_testembedr�.exe�Programsz%r doesn't exist)rr�dirname�sys�
executablerr�join�test_exe�exists�skipTest�getcwd�oldcwd�chdir)�self�exename�builddir�ext�exepath�exes&     r�setUp�EmbeddingTestsMixin.setUpZs������7�7�?�?�3�>�>�2���:�&�s�~�~�6�6�4�B�&�H�C��N�G��G��g�g�l�l�8�Z�8�G� �g�g�l�l�7�<�<��
���w�w�~�~�c�"�"��M�M�,�s�2�3��i�i�k���
����rc�H�[OUO2P!�N)rr4r3�r5s&r�tearDown�EmbeddingTestsMixin.tearDownls��
������rr"�timeout�
returncode�input�cwdc��UO,oUOU2Ud7[%c+UO2o[O
Q*UQ$[
[O[OP	UUQ5oUd[OUQ$[OU1-U@o	U	OVBQ5vq�U	OU6wcM[O%c7[!QUQ02[!QU
02[!QU02[!Q	2UO#U	OUQ
U	OU1*2V�1!S	O2S	O2g9h)z'Runs a test in the embedded interpreter�
SYSTEMROOT)�stdout�stderr�universal_newlinesr"rE�stdin)rDrBz--- z failed ---zstdout:
zstderr:
z------zbad returncode %d, stderr is %r)r/�extendr�copyrrr�
subprocess�PIPE�Popen�communicate�	terminate�waitrCr�verbose�print�assertEqual)r5r"rBrCrDrE�args�cmd�kwargs�p�out�errs&$$$$$*     r�run_embedded_interpreter�,EmbeddingTestsMixin.run_embedded_interpreterosA���}�}�o���
�
�4���?�z�z��(�(�*�C� "�
�
�<� 8�C�����?�?��?�?�#���
����(�o�o�F�7�O����S�+�F�+��	����U��D�J�S�

�<�<�:�%�'�/�/�/��D���[�)�*��I�c�U�#�$��I�c�U�#�$��(�O�������z�:��,�,��,�-�	.��x���	�
�K�K�M�
�F�F�H��s�6E�#E=c#� �UOQ2vqUOUP2Qo[QQ2o]o,oUO2FCDqoUQO	U26XcGUO[U2]2[O]6�c[U2U]*
oJ`UO[U2]2[OV72oUeUOVs2UUO2o	[O]6�c[U	2UOU	O2UOU	O 2UOU	O"2UO%U	2[U2]6XfCJPU]*o
UOV�2Uw�	,oCJt	P!3h)�&test_repeated_init_and_subinterpreterszS^interp (\d+) <(0x[\dA-F]+)>, thread state <(0x[\dA-F]+)>: id\(modules\) = ([\d]+)$�Interpzid interp tstate modulesz--- Pass {} ---)r]rVr�
splitlines�format�lenrrTrU�
assertLess�re�match�assertRegex�groups�
assertTrue�interp�tstate�modules�append)r5r[r\�
interp_patra�numloops�current_run�linergrk�mains&          r�%run_repeated_init_and_subinterpreters�9EmbeddingTestsMixin.run_repeated_init_and_subinterpreters�sl����0�0�1Y�Z�������b�!�2�
��H�&@�A�������N�N�$�$�D��(�/�/��9�9�� � ��[�!1�1�5��?�?�Q�&��$�K��A�
����O�O�C��,�a�0��H�H�Z�.�E��}�� � ��2��U�\�\�^�,�F�����"��f�
��O�O�F�M�M�*��O�O�F�M�M�*��O�O�F�N�N�+����v�&��;��1�$�"�1�~��� � ��.�!�!� ��;%�s&�A#G�&/G�A
G�!:G�A:G�(G)r3r/)
�__name__�
__module__�__qualname__�__firstlineno__r;r@r]rt�__static_attributes__�__classdictcell__��
__classdict__s@rr&r&YsF�����$�%�$�%�)-�%�:;�%�CG�%�%)�%�N2!�2!rr&c�P`�\sQs]�snQ"sQsQsQsQsQs	Qs
QsQsQ	s
Q
sQsQsQ
sQsQsQsQs\O.\O2\O4Q2Q22sQsQsQsQs\ U1QkQk2s!QP	-Qks"Qs#Qs$Qs%Qs&Q s'Q!s(Us)P!)#�EmbeddingTestsc��UO2FD(oU]*oUOUOQ2J*	P!)r�0)rtrV�id)r5�runrss&  r�test_subinterps_main�#EmbeddingTests.test_subinterps_main�s3���=�=�?�C��q�6�D����T�W�W�c�*�@rc��UO2FDdoUCuq#o[UO2o[U2FD7vqgUO	UO[VV*]*22J9	Jf	P!)�)rt�intr��	enumeraterV�str)r5r�rs�subs�_�mainid�i�subs&       r�test_subinterps_different_ids�,EmbeddingTests.test_subinterps_different_ids�s[���=�=�?�C� �N�D������\�F�#�D�/���� � �����V�Z�!�^�)<�=�*�	@rc�t�UO2FD�oUCuq#oQU7c[OQ2gSFDuoUOUOUO2UOUO
UO
2UOUOUO2Jw	J�	P!)�0x0zplatform prints pointers as 0x0)rt�unittest�SkipTest�assertNotEqualrkrlrm)r5r�rsr�r�r�s&     r�test_subinterps_distinct_state�-EmbeddingTests.test_subinterps_distinct_state�s����=�=�?�C� �N�D����}�
�'�'�(I�J�J����#�#�C�J�J����<��#�#�C�J�J����<��#�#�C�K�K����>��@rc��UOQ2vqUOUP2[][]*2Tt,tFD	oQUQ0MJ	ooQO	U2Q*oUOV2P!ttoh)�test_repeated_init_and_inittabz	--- Pass z ---�
)r]rV�range�
INIT_LOOPSr.)r5r[r\r��liness&    rr��-EmbeddingTests.test_repeated_init_and_inittab�sv���0�0�1Q�R�������b�!�.3�A�z�!�|�.D�E�.D��9�Q�C�t�$�.D��E��	�	�%� �4�'������$��Fs�A=c��UOQ2vqUOUOUQ2P2UOUQ2P!)� test_create_module_from_initfunc�embedded_extz�<module 'my_test_extension' (static-extension)>
my_test_extension.executed='yes'
my_test_extension.exec_slot_ran='yes'
<module 'embedded_ext' (static-extension)>
embedded_ext.executed='yes'
�r]rV�_nogil_filtered_err�r5r[r\s&  rr��/EmbeddingTests.test_create_module_from_initfunc�sG���0�0�1S�T�������1�1�#�~�F��K�����9�	rc�v�UOQ2vqUOUP2UOUQ2P!)�!test_inittab_submodule_multiphasez�<module 'mp_pkg.mp_submod' (built-in)>
<module 'mp_pkg.mp_submod' (built-in)>
Hello from sub-module
mp_pkg.mp_submod.mp_submod_exec_slot_ran='yes'
mp_pkg.mp_pkg_exec_slot_ran='yes'
�r]rVr�s&  rr��0EmbeddingTests.test_inittab_submodule_multiphases:���0�0�1T�U�������b�!�����?�	rc��UOQ2vqUOUOUQ2P2UOUQ2P!)�"test_inittab_submodule_singlephase�sp_pkgzd<module 'sp_pkg.sp_submod' (built-in)>
<module 'sp_pkg.sp_submod' (built-in)>
Hello from sub-module
r�r�s&  rr��1EmbeddingTests.test_inittab_submodule_singlephasesG���0�0�1U�V�������1�1�#�x�@�"�E�����3�	rc�v�[[OQQ5oUOQUQ5vq#[O
]6�c![
2[
U2[
U2QoQoQO,QN2oUOUUUQ5oPUm	UOUO2U2P!)	zutf-8:surrogateescape)�PYTHONIOENCODING�test_forced_io_encoding�r"�utf-8�surrogateescaper�)�in_encoding�out_encoding�errors)z--- Use defaults ---�Expected encoding: default�Expected errors: defaultzstdin: {in_encoding}:{errors}zstdout: {out_encoding}:{errors}�'stderr: {out_encoding}:backslashreplacez--- Set errors only ---r�zExpected errors: ignorezstdin: {in_encoding}:ignorezstdout: {out_encoding}:ignorer�z--- Set encoding only ---�Expected encoding: iso8859-1r�zstdin: iso8859-1:{errors}zstdout: iso8859-1:{errors}�"stderr: iso8859-1:backslashreplacez--- Set encoding and errors ---r�zExpected errors: replacezstdin: iso8859-1:replacezstdout: iso8859-1:replacer�)rrrr]rrTrUr.rc�maxDiffrV�strip)r5r"r[r\�expected_stream_encoding�expected_errors�expected_outputs&      rr��&EmbeddingTests.test_forced_io_encodings����2�:�:�0G�H���0�0�1J�PS�0�T����?�?�Q���G��#�J��#�J�#*� �+���)�)�%.�/��2*�0�0�,D�-E�'6�1�8��
����������o�6rc��[[O[OO	[
O2Q5oUOQUQ5vq#[O]6�c![2[U2[U2[%cUOoL3[OO	[O2Q2oQUQ0oUOVR2UOUP2P!)zo
Checks some key parts of the C-API that need to work before the runtime
is initialized (via Py_Initialize()).
)�
PYTHONPATH�test_pre_initialization_apir�r(zsys.executable: r�)rrr�pathsepr.r,rr]rrTrUrr/r2�assertInrV)r5r"r[r\�
expected_pathr�s&     rr��*EmbeddingTests.test_pre_initialization_apiCs���
�2�:�:�"�*�*�/�/�#�(�(�*C�D���0�0�1N�TW�0�X����?�?�Q���G��#�J��#�J��:� �M�M�M��G�G�L�L�����l�C�M�,�]�O�2�>���
�
�o�+�����b�!rc�Z�[2o[OO[O
2UQ$UO
QUQ5vq#[O]6�c![2[U2[U2QoUOVB2UOUP2P!)z�
Checks that sys.warnoptions and sys._xoptions can be set before the
runtime is initialized (otherwise they won't be effective).
r��#test_pre_initialization_sys_optionsr�z�sys.warnoptions: ['once', 'module', 'default']
sys._xoptions: {'not_an_option': '1', 'also_not_an_option': '2'}
warnings.filters[:3]: ['default', 'module', 'once']
)r$rr�r.r,rr]rrTrUr�rV)r5r"r[r\r�s&    rr��2EmbeddingTests.test_pre_initialization_sys_optionsVs���
$�%���J�J�O�O�C�H�H�5��L���0�0�=�3�1�H����?�?�Q���G��#�J��#�J�
D�	�
	
�
�
�o�+�����b�!rc�v�UOQ2vqUOUP2UOUP2P!)zM
bpo-20891: Calling PyGILState_Ensure in a non-Python thread must not
crash.
�
test_bpo20891r�r�s&  rr��EmbeddingTests.test_bpo20891ks6��
�0�0��A�������b�!�����b�!rc�v�UOQ2vqUOUP2UOUP2P!)zN
bpo-33932: Calling Py_Initialize() twice should do nothing (and not
crash!).
�test_initialize_twicer�r�s&  rr��$EmbeddingTests.test_initialize_twicets7��
�0�0�1H�I�������b�!�����b�!rc��UOQ2vqUOUO2Q2UOUP2P!)zC
bpo-34008: Calling Py_Main() after Py_Initialize() must not fail.
�test_initialize_pymainz6Py_Main() after Py_Initialize: sys.argv=['-c', 'arg2']�r]rV�rstripr�s&  rr��%EmbeddingTests.test_initialize_pymain}s>���0�0�1I�J����������'_�`�����b�!rc��UOQ2vqUOUO2Q2UOUP2P!)�
test_run_mainz%Py_RunMain(): sys.argv=['-c', 'arg2']r�r�s&  rr��EmbeddingTests.test_run_main�s;���0�0��A����������'N�O�����b�!rc��]oUOQ2vq#UOUQU*2UOUP2P!)��test_run_main_loopz&Py_RunMain(): sys.argv=['-c', 'arg2']
r�)r5�nloopr[r\s&   rr��!EmbeddingTests.test_run_main_loop�sB�����0�0�1E�F�������G�%�O�P�����b�!rc��[OQ2o[UQQ59^tt^2oUO2oPPP2UO	QW2vqEUOUQ[*2P!)%fhKC9h)z_test_embed_structseq.pyr���encoding�test_repeated_init_exec�
Tests passed
)r�findfile�open�readr]rVr�)r5�script�fp�coder[r\s&     r�test_finalize_structseq�&EmbeddingTests.test_finalize_structseq�sh���!�!�"<�=��
�&�7�
+�
+�r��7�7�9�D�,��0�0�1J�D�Q�������.��;�<�,�
+�s�A9�9B		�B		c�h�UOQ2vqUOUQ[*2P!)�test_repeated_simple_initz
Finalized
�r]rVr�r�s&  r�test_simple_initialization_api�-EmbeddingTests.test_simple_initialization_api�s,���0�0�1L�M�������m�j�8�9rzrequires test modulesc���[OQ2o[OQUOQ02oUO
oUQU2vqEUO
UQ[*2P!)�_testinternalcapia            import dis
            import importlib._bootstrap
            import opcode
            import test.test_dis
            import test.support

            def is_specialized(f):
                for instruction in dis.get_instructions(f, adaptive=True):
                    opname = instruction.opname
                    if (
                        opname in opcode._specialized_opmap
                        # Exclude superinstructions:
                        and "__" not in opname
                        # LOAD_CONST_IMMORTAL is "specialized", but is
                        # inserted during quickening.
                        and opname != "LOAD_CONST_IMMORTAL"
                    ):
                        return True
                return False

            func = importlib._bootstrap._handle_fromlist

            # "copy" the code to un-specialize it:
            test.support.reset_code(func)

            assert not is_specialized(func), "specialized instructions found"

            for _ in range(z�):
                func(importlib._bootstrap, ["x"], lambda *args: None)

            assert is_specialized(func), "no specialized instructions found"

            print("Tests passed")
        r�r�)r�
import_module�textwrap�dedent�SPECIALIZATION_THRESHOLDr]rVr�)r5r�r�r�r[r\s&     r�>test_specialized_static_code_gets_unspecialized_at_Py_FINALIZE�MEmbeddingTests.test_specialized_static_code_gets_unspecialized_at_Py_FINALIZE�su��
*�7�7�8K�L�����$�8.�F�F�G�H	�9" �"
��F�+�+���0�$�7�������.��;�<rc�n�QoUOQU2vq#UOUQ[*2P!)zprint('\N{digit nine}')r�z9
r��r5r�r[r\s&   r�test_ucnhash_capi_reset�&EmbeddingTests.test_ucnhash_capi_reset�s1��)���0�0�1J�D�Q�������e�j�0�1rc�n�QoUOQU2vq#UOUQ[*2P!)zdimport datetime;d = datetime.datetime.strptime('2000-01-01', '%Y-%m-%d');print(d.strftime('%Y%m%d'))r�z	20000101
r�r�s&   r�test_datetime_reset_strptime�+EmbeddingTests.test_datetime_reset_strptime�s8��
*�	
�
�0�0�1J�D�Q�������l�Z�7�8rc�F�[OQ2oQo-o[VU2UUQ*2o=U[OQ2*
oUOQV2vqVUO	Q2Q*oSTt,tFD/o[
OUOQ2P*2MJ1	tovq�UU	2oUU
2oUO2FDevq�U
vooQU1Q	U11FDNvooUOUUUQ
59^tt^2UOU
2oUOUU2PPP2JP	Jg	PUmUOU-2UOU-2UOUP2P!ttoh)%fhJ�9h)a�
            import test.support
            results = []
            for cls in test.support.iter_builtin_types():
                for attr, _ in test.support.iter_slot_wrappers(cls):
                    wrapper = getattr(cls, attr)
                    res = (cls, attr, wrapper)
                    results.append(res)
            results = ((repr(c), a, repr(w)) for c, a, w in results)
            c�R�-oSFDvq#oV#1oVQ7f
PVU12gVAU$J	U!r>�)�raw�results�cls�attr�wrapperr#s&     r�collate_results�IEmbeddingTests.test_static_types_inherited_slots.<locals>.collate_results�sA���G�&)�"��7��i���)�B�G�'�+B�B�)�&���'*��Nrrz�
            import json
            import sys
            text = json.dumps(list(results))
            print(text, file=sys.stderr)
            r�z
--- Loop #�r�NNz ---
�embedded�reinit)r�slotattr)
r�r��execr]�split�json�loads�
rpartition�items�subTest�poprVr�)r5r�r	�ns�main_resultsr[r\�_results�res�	_embedded�_reinit�embedded_results�reinit_resultsr#�expectedrr�srcr�actuals&                   r�!test_static_types_inherited_slots�0EmbeddingTests.test_static_types_inherited_slots�s������	"�	��	����V���&�r�)�}�5����(�/�/�#��	���0�0�)�6�;����9�9�\�*�2�.��BJ�
K�(�3�d�j�j�����1�"�5�6�(�
K�	��*�9�5��(��1��)�/�/�1�M�C��I�C���-�.��>�*�!���W��\�\�#�3��\�>�>�$�[�[��-�F��$�$�V�X�6�?�>�	!�2�������)�2�.������,�����b�!��#L�?�>�>�s�7F
�$F
�F �F c��[OQ2oUOQU2vq#UOUQ[*2P!)a�
            try:
                import _ssl
            except ModuleNotFoundError:
                _ssl = None
            if _ssl is not None:
                _ssl.txt2obj(txt='1.3')
            print('1')

            import _queue
            _queue.SimpleQueue().put_nowait(item=None)
            print('2')

            import _zoneinfo
            _zoneinfo.ZoneInfo.clear_cache(only_keys=['Foo/Bar'])
            print('3')
        r�z1
2
3
)r�r�r]rVr�r�s&   r� test_getargs_reset_static_parser�/EmbeddingTests.test_getargs_reset_static_parsersC����� �
��"�0�0�1J�D�Q�������k�J�6�7rc�.:�U]6�cPgQRZQRZQRZ-!)�r\�mod_name�return)r�)rcr}s"�r�__annotate__�/EmbeddingTests._nogil_filtered_err.__annotate__.s"���-�-��-��-��-rc���[O%fU!QUQ0oUO2O2Tt,tFD
oV#7fJUMJ	ooQO	U2!ttoh)zSRuntimeWarning: The global interpreter lock (GIL) has been enabled to load module '�'r�)r�Py_GIL_DISABLEDr�rbr.)r\r)�expected_runtime_warningrr�filtered_err_liness&&   rr��"EmbeddingTests._nogil_filtered_err-sy���&�&�&��J�

1�19�
�!�
=�	!��	�	��.�.�0�
�0��'�3�
�D�0�	�
�
�y�y�+�,�,��
s�
A'�A'�check_stderrc��UOU-U@vqEUOUO2Q2U%cUOUP2P!P!)zok! Py_RunMain() returned 123r�)r5r3rWrYr[r\s&$*,  r�check_program_exitcode�%EmbeddingTests.check_program_exitcode?sH���0�0�$�A�&�A����������'F�G�����S�"�%�rc�8�[oUOQU2P!)� test_init_run_main_code_exitcode��CODE_EXITCODE_123r5�r5r�s& rr8�/EmbeddingTests.test_init_run_main_code_exitcodeEs�� ���#�#�$F��Mrc	�j�[O29^tt^2o[OO	UQ2o[UQ29^tt^2oUO
[2PPP2UOQU2PPP2P!)%fhK,9h)%fhP!9h)�	script.py�w�"test_init_run_main_script_exitcode)	�tempfile�TemporaryDirectoryrrr.r��writer:r5)r5�tmpdir�filenamer�s&   rr@�1EmbeddingTests.test_init_run_main_script_exitcodeIsy��
�
(�
(�
*�
*�f��w�w�|�|�F�K�8�H��h��$�$�����*�+�%�
�'�'�(L�(0�
2�+�
*�$�$��+�
*�
*�s/�5B!�B	�*B!�B
�B
�B!�!B2	�*B2	c�<�[oUOQUP
Q5P!)�'test_init_run_main_interactive_exitcode)rDr3r9r;s& rrH�6EmbeddingTests.test_init_run_main_interactive_exitcodeRs#�� ���#�#�$M�*.�16�	$�	8rc	��[O29^tt^2o[OO	UQ2o[UQ29^tt^2oUO
[2PPP2[[O2oV$Q$UOQUP
Q5PPP2P!)%fhKK9h)%fhP!9h)z
startup.py�x�
PYTHONSTARTUPrH)r"r3�rArBrrr.r�rCr:rrr5)r5rDrEr�r"s&    r�#test_init_run_main_startup_exitcode�2EmbeddingTests.test_init_run_main_startup_exitcodeXs���
�
(�
(�
*�
*�f��w�w�|�|�F�L�9�H��h��$�$�����*�+�%��r�z�z�"�C�#+�� ��'�'�(Q�,/�5:�
(�
<�+�
*�$�$��+�
*�
*�s/�5C�B-	�*9C�-B=
�6B=
�8C�C	�	C	c	��[O29^tt^2oQo[OO	VQ*2o[UQQQ59^tt^2oUO
[2PPP2[[O2oVQ$UOQV%Q5PPP2P!)%fhKJ9h)%fhP!9h)�_testembed_testmodule�.pyrK�utf8r�r��"test_init_run_main_module_exitcoder�rM)r5rD�modnamerEr�r"s&     rrT�1EmbeddingTests.test_init_run_main_module_exitcodeds���
�
(�
(�
*�
*�f�-�G��w�w�|�|�F�e�O�<�H��h��f�5�5�����*�+�6��r�z�z�"�C� &����'�'�(L�(/�
(�
:�+�
*�6�5��+�
*�
*�s/�?C	�B6	�48C	�6C
�?C
�C	�	C	�C	)r�i�)*rvrwrxryr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�requires_specializationr��
skipUnless�TEST_MODULES_ENABLEDr�r�r�r"r%�staticmethodr�r5r8r@rHrNrTrzr{r|s@rrr�s������G�+�>�?�*%�	�	��)7�V"�&"�*"�"�"�"�
"�
=�:�
�$�$�
����5�5�7N�O�*=�P�%�*=�X2�9�3"�j8�.�-��-�"&��&�N�2�8�
<�
:�
:rrc�D�[UQ$]UQ$]UQ$Q,UQ$]UQ$P!)�	allocator�dev_mode�default�warnoptions�faulthandler)�PYMEM_ALLOCATOR_DEBUG)�	preconfig�configs&&r�config_dev_moderdqs6��2�I�k���I�j���F�:��&�K�F�=���F�>�r�requires _testinternalcapic�
`�\sQsQsnQs\%cQLQs\2s\2s	Q\
Q\QP
QP	Q	P
Q
P
QP	-s\%c\OQP
-2\\\P	\\Q
5s\\\P
P	P
P	P
P
Q5s,Q�Ns-Q\
aQP
aQP	aQP
aQP	aQP
aQ]aQ\O*O,aQPaQP
aQ]aQ]aQ]aQPaQ\aQ\aQP	a-QP
aQ P
aQ!PaQ"P
aQ#P
aQ$\aQ%\aQ&PaQ'\aQP
aQ(P,aQ),aQ*-aQ+,aQ,PaQ-PaQ.\aA-Q/\aQ0\aQ1\aQ2\aQ3\aQ4\aQ5P	aQ6\O2aQ7\aQ8P	aQ9]aQ:P
aQ;P
aQ<P
aQ=]aQ>P
aQ?P	aA-Q@]aQAP
aQBP	aQCP	aQDP
aQEP	aQF\aQG\aQHP
aQIPaQJPaQKPaQLPaQMP	aQNQOaQPP	aQQP	aAQR\O6%(QSP
QT\	-As\%cP
\QU$\O6%cP\QV$\O<%cP\QW$\\QX$\%c\OQYP
-2\O>%cP
\QZ$\\\P	P	Q[5s \\\P	P
P
P	P
P
P
P
P
]P
Q\5
s!\%cP
\!QY$Q]]Q^]Q_]-s"Q�,s#,Q�Ns$\%c#\#OKQ�2\$OKQ�2Ps&\'Q`2s(Qas)Qbs*Qcs+Q�Qdks,Qes-Qfs.Qgs/Q�QhPQiPQjP
QkP-Qlkks0\1Od\OfQm2Qn2s4Qos5Qps6Qqs7Qrs8\1Od\OfQm2Qs2s9\1Od\OfQm2Qt2s:Qus;Qvs<Qws=Qxs>Qys?Qzs@Q{sAQ|sBQ}sCQ~sDQsEQ�sFQ�sGQ�sHQ�sIQ�sJQ�sKQ�sLQ�sMQ�sNQ�sOQ�Q�ksP\QO�Q�Q�k2sSQ�sTQ�sUQ�sV\1Od\Q�2Q�2sW\1O�\Q�2Q�2sYQ�sZ\1O�\Q�2Q�2s[Q�s\Q�s]\1Od\OfQm2Q�2s^Q�s_Q�s`Q�saQ�sbQ�scQ�sd\eO�2Q�2sgQ�shQ�siUsjP!)��InitConfigTests�yi�
surrogatepassr��_config_initr\�
parse_argv�configure_locale�coerce_c_locale�coerce_c_locale_warn�	utf8_mode�legacy_windows_fs_encoding)rjrkrmro)rjrl�isolated�use_environmentror]rmr]rqrr�install_signal_handlers�
use_hash_seed�	hash_seed�int_max_str_digits�	cpu_countr`�tracemalloc�perf_profiling�import_time�lazy_imports�thread_inherit_context�context_aware_warnings�code_debug_ranges�show_ref_count�	dump_refs�dump_refs_file�malloc_stats�pymalloc_hugepages�filesystem_encoding�filesystem_errors�pycache_prefix�program_name�argv�	orig_argv�xoptionsr_�pythonpath_env�homer-�base_executable�prefix�base_prefix�exec_prefix�base_exec_prefix�module_search_paths�module_search_paths_set�
platlibdir�
stdlib_dir�site_import�
bytes_warning�warn_default_encoding�inspect�interactive�optimization_level�parser_debug�write_bytecoderT�quiet�remote_debug�user_site_directory�configure_c_stdio�buffered_stdio�stdio_encoding�stdio_errors�skip_source_first_line�run_command�
run_module�run_filename�
sys_path_0�_install_importlib�check_hash_pycs_moder^�pathconfig_warnings�
_init_main�use_frozen_modules�	safe_path�_is_python_build�_pystats�run_presite�
enable_gil�tlbc_enabled�legacy_windows_stdio�use_system_logger)rjr�rk)rjrqrrr�r�r]rsrtr`rxryr��Py_HasFileSystemDefaultEncoding�Py_HashRandomizationFlag�$_Py_HasFileSystemDefaultEncodeErrorsc��PUmP!r>)�EXPECTED_CONFIG)rs&r�
tearDownClass�InitConfigTests.tearDownClassEs��#��rc�j�-oSFD(oQU7cUOQ]2vqEVRU$J$P	V#$J*	U!)�=)r)r5�
xoptions_listr��optr#�values&&    r�
main_xoptions�InitConfigTests.main_xoptionsJs?���� �C��c�z� �Y�Y�s�A�.�
�� %��
� $��
�!��rc��[2o[OQ2o[OQQU,o[
OV1[
O[
OQ5oUO%c([QUO8QUO802gUOOQ2o[OU2![OcSO!QS802P!h9h)a4
            import json
            import sys
            import _testinternalcapi

            configs = _testinternalcapi.get_configs()

            data = json.dumps(configs)
            data = data.encode('utf-8')
            sys.stdout.buffer.write(data)
            sys.stdout.buffer.flush()
        z-S�-c)r"rHrIz)failed to get the default config: stdout=z stderr=r��fail to decode stdout: )r$r�r�r,r-rNr�rOrC�	ExceptionrHrI�decoderr�JSONDecodeError�fail)r5r"r�rW�procrHs&     r�_get_expected_config_impl�)InitConfigTests._get_expected_config_implTs���#�%����� �
������d�D�1���~�~�d�%/�_�_�%/�_�_�6���?�?�?��&�&*�k�k�_�H�T�[�[�O�M�N�
N����#�#�G�,��	<��:�:�f�%�%���#�#�	<��I�I�/��z�:�;�	<�s�C�D�*D�Dc�:�[oUOeUO2Um-oUOO2FDOvq4-oUO2FD/vqg[	U[
2%cUO
2oVuU$J1	VRU$JQ	U!r>)rgr�r�r�
isinstancer rM)r5r�configs�
config_key�config_valuercr#r�s&       r�_get_expected_config�$InitConfigTests._get_expected_configss��������&�"&�"@�"@�"B�C����(+�(;�(;�(A�(A�(C�$�J��F�*�0�0�2�
���e�T�*�*�!�J�J�L�E�#�s��3�#)�J��
)D��rc��UO2oUQ*oUO2FD vq�V�OIfJVx*V$J"	UQ*%cU[6XcQFDoUOV($J	UQ*]6Xc{UQ*UOIcQUQ$UQ*UOIcUO
UQ$UQ*UOIcQUQ$UQ*UOIcQUQ$[%cUOo
LqUQ	*UOIc([OOUQ	*2o
L3[OO[O2Q
2o
UQ*UOIcV�Q$UQ*UOIcV�Q$UQ	*UOIcQ
UQ	$UQ*oUO2FD vq�V�OIfJV�*V($J"	UQ*UOIctUQ*oUd:UO[OO2o
,U
NUQ*NUQ$Ud*UQ*O2UQ$UUQ*2UO FDoV�7fJV(*V$J	P!)�
pre_configrlr�r�r�r�ror�r�r�r(r-r�z./_testembedrcr�r�)r�r�r�r�)r�r�GET_DEFAULT_CONFIG�
API_COMPAT�
IGNORE_CONFIG�UTF8_MODE_ERRORSrr/rr�abspathr.r2rr�rM�COPY_PRE_CONFIG)r5�expected_preconfigrr"�api�modify_path_cbr�r�r#r��default_executablercr��pathss&&&&&&        r�get_expected_config�#InitConfigTests.get_expected_config�s����+�+�-���\�*�
�,�2�2�4�J�C��/�/�/�*4�/�"�'�5�"�"4�5�5��
�9J�:�� $� 2� 2��
�:��k�*�a�/��-�.�$�2I�2I�I�29��.�/��+�,��0G�0G�G�04�0E�0E��,�-��(�)�T�-D�-D�D�-4��)�*���'�4�+B�+B�B�+<���(��:�!%����
�n�
%�T�-D�-D�
D�!#������.�1I�!J��!#�����b�i�i�k�<�!H���L�!�T�%<�%<�<�%7�\�"��%�&�$�*A�*A�A�*<�&�'��N�#�t�'>�'>�>�'5�H�^�$���"��"�.�.�*�J�C��/�/�/� &���
�+��)�*�$�2D�2D�D�%�&6�7�N��)�&�,�,�R�W�W�_�_�=��2\�E�2\�H�EZ�<[�2\��.�/��)�2:�;P�2Q�2V�2V�2X��.�/��x�(=�>�?��'�'�C��,�*2�-�"�'�(rc���[UQ*2o[UO22FD*vqEVPOIfJUO	UP2V$J,	UOV22P!)r�)rr rr�rrV)r5r�rr�r#r�s&&&   r�check_pre_config� InitConfigTests.check_pre_config�sX���'�,�/�0�
��x�~�~�/�0�J�C��*�*�*����s�D�)��M�1�	
����.rc��[UQ*2o[%c�UOQ9o2oU%c�[U[2%czUP[UO
2OQ22o[[O2%c,UP[UO
2OQ22oVSU$[UO22FD�vqEVPOIcUOUP2V$[U[[ 12%fJF[UOU2[[ 12%fJs[#V4*2V$*2V$$J�	UO%V22P!)rcr�r)r)rr�getr�r�rd�lower�removesuffixrr,r-r rr�r�boolr��typerV)r5r�rrcr#r�s&&&   r�check_config�InitConfigTests.check_config�s���g�h�'�(���:��J�J�n�4�s�5�E���E�3�/�/��F�s�5�;�;�=�#=�#=�f�#E�F�G���s�~�~�.�.�!�"H�3�u�{�{�}�'A�'A�$�'G�#H�I�E�#�s���x�~�~�/�0�J�C��*�*�*��
�
�3��%��M��%�$���-�-�*�V�Z�Z��_�t�UX�k�2Z�2Z� $�V�[� 1�(�-� @��
�
1�	
����*rc��UQ*oUQ*o[UO2oUOFD<o[U2]6XcUvqgoV7*%c]L]VF$J.UvqgV7*VF$J>	UOFD<o[U2]6XcUvqgoV'*%c]L]VF$J.UvqgV'*VF$J>	UOUQ*U2P!)r�rc�
global_config)r�DEFAULT_GLOBAL_CONFIG�COPY_GLOBAL_CONFIGrd�COPY_GLOBAL_PRE_CONFIGrV)	r5r�r�rcr�item�
global_key�core_key�opposites	&&       r�check_global_config�#InitConfigTests.check_global_config�s����\�*�
���"����2�2�3���+�+�D��4�y�A�~�15�.�
�h�,2�,<�,<�q�!��$�'+�$�
�'-�'7��$�
,��/�/�D��4�y�A�~�15�.�
�h�,6�,@�,@�q�a��$�'+�$�
�'1�';��$�
0�	
�����1�8�<r�
preconfig_apir"�
ignore_stderrrEc�^�[2oUdUOU2SoUeSoU[6XcUOoL$U[6XcUO
oLUOoUe-o[U1-U@oUe-oU[6XcUOo
L$U[6XcUOo
LUOo
[U
1-U@oUOUUUVd2UOUV�Q5vq�UeUQ*%fPoUd)U	%f!UOUO2U2[O U2oUO'WU2UO)UU2UO+U2U![O"cSO%QS802Kch9h)N)r"rErTr�)r$�update�API_ISOLATED�PRE_CONFIG_ISOLATED�
API_PYTHON�PRE_CONFIG_PYTHON�PRE_CONFIG_COMPATr�
CONFIG_PYTHON�CONFIG_ISOLATED�
CONFIG_COMPATr�r]rVr�rrr�r�r�r�r�)r5�testname�expected_configr�r�rIr�r�r"r�rE�new_env�default_preconfig�default_configr[r\r�s&&&&&&$$$$$      r�check_all_configs�!InitConfigTests.check_all_configs�s���
(�)���?��N�N�3����� ��M��L�(� $� 8� 8��
�j�
(� $� 6� 6�� $� 6� 6���%�!#��!�"3�J�7I�J���"� �O��*��!�/�/�N�
�L�
 �!�1�1�N�!�/�/�N��~�A��A��� � �!3�!0�!$�!$�	6�
�0�0��58�1�C����>�/�)�"<�"<��F���m����S�Z�Z�\�6�2�	9��j�j��o�G�	
���g�'9�:����'�?�3�� � ��)����
�#�#�	9��I�I�/��w�7�8�	9�s�2E?�?F,�F,�+F,z'segfaults on BOLT instrumented binariesc�6�UOQ[Q5P!)�test_init_initialize_config�r��rr�r?s&r�test_init_default_config�(InitConfigTests.test_init_default_config"s�����<�*��Mrc�6�UOQ[Q5P!)�test_preinit_compat_configrrr?s&rr�*InitConfigTests.test_preinit_compat_config&������;���Lrc�6�UOQ[Q5P!)�test_init_compat_configrrr?s&rr�'InitConfigTests.test_init_compat_config)������8�j��Irc�z�QP	-oQP
QP	QQ,QP	QP	Q]QP
Q	P	Q
P	QP
QP	Q
P
QP
-
oUOQV![Q5P!)ror�r�r_�default::BytesWarningr�r�r�r�rTr�r�r�r�r��test_init_global_configrr�r5rbrcs&  rr�'InitConfigTests.test_init_global_config,sy����
�	�
�5��T��3�4��t��4� �!��e��t��T��e��D�!�5�!�5�
��	
���8�&�#-�	�	/rc
��Q[QP	-o-QP
aQP	aQ]{aQ]aQ]aQ]aQP
aQ	P	aQ
P	aQP	aQQ
aQQaQQaQQaQQQ,aQ,Q=NaQP	a-QQQQPQP	QP	-aQ,Q>NaQ Q!aQ"P
aQ#]aQ$P	aQ%P	aQ&]aQ'P
aQ(]aQ)P	aQ*P	aQ+P	aQ,P
aQ-P
aQ.P	aQ/Q0aAQ1UOQ2P	Q3Q4Q5Q6Q7Q8Q9P
-Ao[%c]UQ:$UOQ;V![Q<5P!)?r\rorsrtrurxryrzr~rr�r�r��	iso8859-1r��replacer��conf_pycache_prefixr�z./conf_program_namer�r��arg2r��cmdline_xoptionrkr��config_xoption1�3�config_xoption2�config_xoption3r_r��pass
r�r�r�r�r�r�rTr�r�r�r�r�r`r��
my_platlibdirr�r�rviizrwi�r��alwaysr�r��test_init_from_configr)�python3�-W�cmdline_warnoption�-Xr&r��passr%)r1r�config_warnoption��ALLOCATOR_FOR_CONFIGr��Py_STATSrr�rs&  rr.�%InitConfigTests.test_init_from_configBsJ���-���
�	�:
�%�u�:
��T�:
�
��:
�
�1�	:
�

�a�:
�
�1�
:
�
 ��:
�
�d�:
�
�D�:
�
!�$�:
�
�k�:
�
�I�:
�
�3�:
� 
�1�!:
�"
�T�6�N�#:
�$
�"�%:
�.
�$�/:
�0
�!�3�!�2�!�4�!�4�	�1:
�<
��=:
�F
�8�G:
�J
�5�K:
�L
�Q�M:
�N
�t�O:
�P
�4�Q:
�R
!�!�S:
�T
�e�U:
�V
�q�W:
�X
�T�Y:
�Z
�D�[:
�\
 ��]:
�^
�e�_:
�`
"�5�a:
�b
�D�c:
�d
�/�e:
�f
"�4�#5�#5��� �%���"�H�!�5�s:
��v�8�!"�F�:�����6��#-�	�	/rc�
�Q[-o-QP	aQ]*aQ]aQ]aQP
aQP	aQP	aQP	aQ	]aQ
QaQQ
aQP
aQ]aQP
aQQaQQaQP
aQP	QQ,QQQUOQP	QQQ]-Ao[%c]UQ $UOQ!V![Q"5P!)#r\rtrurxrzr~r�r�r�r�r��/my/pathr��env_pycache_prefixr�rTr�r�r"r�r#r�r`r_�EnvVarr��env_platlibdirr�r�rv��ryr��test_init_compat_envrr5rs&  rr?�$InitConfigTests.test_init_compat_env�s@��
�-�
�	�
��T�
���
�
�1�
�
�1�	
�

 ��
�
�D�

�
!�$�
�
�t�
�
!�!�
�
�j�
�
�2�
�
�e�
�
�q�
�
�e�
�
�k�
� 
�I�!
�"
"�5�#
�$
�D��H�:��*�!�4�#5�#5��� �$��a�1
��4�8�!"�F�:�����5�v�#-�	�	/rc��Q[Q]-o-QP	aQ]*aQ]aQ]aQP
aQP	aQP	aQ	P	aQ
]aQQaQ
QaQP
aQ]aQP
aQQaQQaQP
aQP	QQ,QQQUOQP	QQQ ]-Ao[%cP	UQ!$UOQ"V![Q#5P!)$r\rortrurxrzr~r�r�r�r�r�r:r�r;r�rTr�r�r"r�r#r�r`r_r<r�r=r�r�rvr>ryr��test_init_python_envr)r6r�r7rrrs&  rrB�$InitConfigTests.test_init_python_env�sE��
�-���
�	�
��T�
���
�
�1�
�
�1�	
�

 ��
�
�D�

�
!�$�
�
�t�
�
!�!�
�
�j�
�
�2�
�
�e�
�
�q�
�
�e�
�
�k�
� 
�I�!
�"
"�5�#
�$
�D��H�:��*�!�4�#5�#5��� �$��a�1
��4�8�!%�F�:�����5�v�#-�	�	/rc�v�[[Q5o[]]Q,Q5oUOQV![Q5P!)�r\r^�r]r`r_�test_init_env_dev_moder)rrarr�rs&  rrG�&InitConfigTests.test_init_env_dev_mode�s>���#8�9�	��q�#$�#,�+�/��	
���7��#-�	�	/rc�v�[[Q5o[]]Q,Q5oUOQV![Q5P!)rEr^rF�test_init_env_dev_mode_allocr)rr6rr�rs&  rrJ�,InitConfigTests.test_init_env_dev_mode_alloc�s>���#7�8�	��q�#$�#,�+�/��	
���=�v�#-�	�	/rc�d�-oQP	QP	QQ,-o[V2UOQV![Q5P!)r`r]r_r^�test_init_dev_moder�rdrrrs&  rrM�"InitConfigTests.test_init_dev_mode�sD���	��D����I�;�
��
	�	�*����3�V�#-�	�	/rc��-oQQ,Q,Q
NQ[OOQ2QP	QP	QQ,Q	QP	-Q
P	-o[V2UO	QV![
Q5P!)r�r>r��devr�r]r`r_r^r�r��test_preinit_parse_argvr)r/r2rQ�-Pr>)rrr�rdrrrs&  rrR�'InitConfigTests.test_preinit_parse_argv�ss���	��[�M��D��B�G�G�O�O�K�8����D��I�;����
���	
��	�	�*����8�&�#-�	�	/rc�X�QP
-o,QNoQUQUQP
-oUOQV1[Q5P!)rqr�r��test_preinit_dont_parse_argvr)	r/�-E�-IrSr2rQr2rSr>�rr�)r5rbr�rcs&   rrV�,InitConfigTests.test_preinit_dont_parse_argv�sL��
��
�	���
�D�����
��
	
���=�v�#/�	�	1rc�L�QP	QP	QP
QP
-oUOQU[Q5P!)rqr�rrr��test_init_isolated_flagr�rr�r5rcs& rr\�'InitConfigTests.test_init_isolated_flags5�������u�!�5�	
��	
���8�&�j��Qrc�L�QP	QP	QP
QP
-oUOQU[Q5P!)rqr�rrr��test_preinit_isolated1rrr^s& rra�&InitConfigTests.test_preinit_isolated1�7��
�����u�!�5�	
��	
���7��Z��Prc�L�QP	QP	QP
QP
-oUOQU[Q5P!)rqr�rrr��test_preinit_isolated2rrr^s& rre�&InitConfigTests.test_preinit_isolated2"rcrc�6�UOQ[Q5P!)�test_preinit_isolated_configrrYr?s&rrh�,InitConfigTests.test_preinit_isolated_config,s�����=�<��Prc�6�UOQ[Q5P!)�test_init_isolated_configrrYr?s&rrk�)InitConfigTests.test_init_isolated_config/s�����:���Mrc�6�UOQ[Q5P!)�test_preinit_python_configrr]r?s&rrn�*InitConfigTests.test_preinit_python_config2rrc�6�UOQ[Q5P!)�test_init_python_configrr]r?s&rrq�'InitConfigTests.test_init_python_config5rrc�F�Q]Q]-oUOQ-U[Q5P!)rlrm�test_init_dont_configure_localerr])r5rbs& rrt�/InitConfigTests.test_init_dont_configure_locale8s4��
���q�
�	�	
���@�"�i�#-�	�	/rc�d�Q]QQP	QP	QP	QP	-Q,Q	NQ,Q
N-oUOQU[Q5P!)r`r��config_xoptionr&�sysadd_xoptionr_r��test_init_sys_addr)�ignore:::cmdline_warnoptionzignore:::sysadd_warnoptionzignore:::config_warnoption)r/r0rzr2r&r]r^s& rry�!InitConfigTests.test_init_sys_addAsV���A�� �$�!�4� �$���	�
��

�3�
��"	
���2�F�
��Krc�r�QoQQQ,QQQUQ,QQQUQ	*Q
P	QP-oUOQU[Q
5P!)�Rimport _testinternalcapi, json; print(json.dumps(_testinternalcapi.get_configs()))r�r�r%r�r/r��	./python3r�r�rkr��test_init_run_mainrr]�r5r�rcs&  rr�"InitConfigTests.test_init_run_mainUsZ��E��
�T�6�N��)�T�4��8��K��4�$�;��$��"�

��	
���3�V���Lrc�x�QoQQQ,QQQUQ,QQQUQ	*Q
P	QP
QP-oUOQ
U[QQ5P!)r}r�r�r%r�r/r�r~r�r�rkr�r��test_init_mainz)Run Python code before _Py_InitializeMain)r�rIr]r�s&  rr��InitConfigTests.test_init_mainbsn��E��
�T�6�N��)��� �"�
�K��4�$�;��$��%��"�

��	
���/��#-�&Q�	�	Src�\�QP	Q,Q
NQ,QNQQQQQP
-oUOQU[Q	5P!)rkr�r��./argv0r�r�r+rr�test_init_parse_argvr)r��arg1�-v�arg3�r�rWr�r3r�r�r�r]r^s& rr��$InitConfigTests.test_init_parse_argvtsA���$��0��N��I��8��u�

��	
���5�v�:��Nrc�\�Q]-oQP
Q,QNQ,QNQQ-oUOQV![Q5P!)rkr�r�r�r��test_init_dont_parse_argvrr�r])r5r�rcs&  rr��)InitConfigTests.test_init_dont_parse_argvsJ���!�
�
�
�%��I��N��I�	
��	
���:�F�#-�	�	/rc���[%cQoUOoL;Qo[%cUOoL [OU29%fPoUOQUQUQU-2P!)r
r/r�r�r-)rr/�MACOS�shutil�whichr�)r5rcr�r-s&&  r�default_program_name�$InitConfigTests.default_program_name�s^���:�#�L����J�$�L��u�!�]�]�
�#�\�\�,�7�=�=�2�
��
�
��L��z��*�
�	rc��UO2oUQ*Q*oQUQPQPQPQPQP-oUOU2Q[OOOU2-oUO
QU[UP	Q	5P!)
rcr�r�r�r�r�r��TESTPATH�test_init_setpath�r�r"r�)r�r�rrr�r.rr��r5rcr�r"s&   rr��!InitConfigTests.test_init_setpath�s����*�*�,���x� �!6�7��
"�5��b��2��2���
�"�	
��	
�!�!�&�)��2�7�7�?�?�/�/��6�7�����2�F�#-�3�-1�	�	3rc�$�UO2oUQ*Q*oQUQPQPQPQPQPQ[O%(QQ	Q
QQQ-
oQ
[OO
O
U2-oUOQU[UP	Q5P!)rcr�r�r�r�r�r�r�r��conf_program_namer��conf_executabler-r��test_init_setpath_configr�)	r�r�Py_DEBUGrrr�r.rrr�s&   rr��(InitConfigTests.test_init_setpath_config�s����*�*�,���x� �!6�7��
"�5��b��2��2���
�"� �g�&6�&6�"6��/��0��+�
�� �2�7�7�?�?�/�/��6�7�����9�6�#-�3�d�	�	Lrc��UO2oUeUQ*Q*oUeUQ*Q*o[%cUQ*Q*![Oo[O
O
U[OQUOUO[Q02[O
O
U[OQUOQUO[02[O
O
U[OQUOQUO[0Q2,!)	Nrcr�r�r�r
z.zipr�lib-dynload)r�rr,�version_inforrr.r��major�minor�
ABI_THREAD)r5r�r�rc�vers&&&  rr��#InitConfigTests.module_search_paths�s���*�*�,���>��H�%�h�/�F��� ��*�=�9�K��:��(�#�$9�:�:��"�"�C������V�S�^�^�%�c�i�i�[�����J�<�t�L�N������V�S�^�^�%�c�i�i�[��#�)�)��Z�L�I�K������[�#�.�.�%�c�i�i�[��#�)�)��Z�L�I�=�Z��
rc#�" �[O29^tt^2o[OO	U2oU%cS[OO[OO
V!22o[OU2[%c�]PH&o[OOUO2o[OU2FDnoUOUQ2%fJ[O[OO
VE2[OO
V%22Jp	[OO
U[OOUO22o[OUOU2[O UOU2V`mUw�PPP2P!)%fhP!9h3h)rz*.dll)rArBrr�realpath�normpathr.�makedirsr�fnmatchr+r/�listdirr��copyfiler�copystat)r5�subdirrDr��exedir�f�	exec_copys&&     r�tmpdir_with_python�"InitConfigTests.tmpdir_with_python�s-����
(�
(�
*�
*�f��W�W�%�%�f�-�F�����)�)�"�'�'�,�,�v�*F�G�����F�#��z����������7�����F�+�A����q�'�2�2���������V�(?������f�AX�Y�,�
�����V�R�W�W�-=�-=�d�m�m�-L�M�I��O�O�D�M�M�9�5��O�O�D�M�M�9�5�%�M��L�/+�
*�
*�
*�s7�H�'G;�	AG;�'AG;�C)G;�1
H�;H	�H	�	Hc�,�UO2oUQ*Q*o[OOO	U2oSFD�o[OOU2%fJ*[OO
[OO	UQ22%fJo[OOU2oL	UOQU802W9qg[%cL[OO	UQ2oU]*[OO	UQ2U,o	L�[OOQ[OO0o
[OO	U[OQU
[02oUO!VUQ5o	Q	UQU	Q
UQUQUQ
UQUQU-oUO#U2QUQU-oUO%QU[&UP	Q5P!)rcr�r�Unable to find home in �Lib�DLLsrr
�r�r�r�r�r�r�r�r�r��TESTHOMEr��test_init_setpythonhomer�)r�rrr�r.�isdirr0r+r�rr,r�r�r�r�r�r�r�rr�)r5rcr��	paths_strrr�r�r��stdlib�expected_paths�versionr"s&           rr��'InitConfigTests.test_init_setpythonhome�s����*�*�,���x� �!6�7���G�G�O�O�(�(��/�	��D��7�7�=�=��&�&���w�w�~�~�b�g�g�l�l�4��9�:�:��w�w���t�,����
�I�I�/��y�9�:�#�#���:��W�W�\�\�$��.�F�$�A�h������T�6�(B�F�K�N��)�)�/�/�0��#�2B�2B�2H�2H�1I�J�G��W�W�\�\�$����&��	�*��8V�W�F�!�5�5�T�5�T�N�
�D�!�>��f��6��;����i��&�	
��	
�!�!�&�)��4��y�9��
	
���8�&�#-�3�d�	�	Lrc��UO2oUQ*Q*o[OOO	U2oSFD�o[OOU2%fJ*[OO
[OO	UQ22%fJo[OOU2oL	UOQU802W9qg[%cL[OO	UQ2oU]*[OO	UQ2U,o	L�[OOQ[OO0o
[OO	U[OQU
[02oUO!VUQ5o	Q	UQU	Q
UQUQUQ
UQUQU-oQUQU-oQUQ$]UQ$UO#QU[$UP	Q5QUQ$]UQ$[OO[O&2o[)[OO	UQ2QQ59^tt^2o
[OO+[OO	V�O-2Q0O/2]*22S	[%c]L]$PPP2[%fP[O0o[O2oUO!UQ5]*U	]$UO5VfVwQ5UO#QU[$UP	Q5P!)%fhK�9h)rcr�rr�r�r�rr
r�r�r�r�r�r�r�r�r�r��1�NEGATIVE_ISPYTHONBUILDr��test_init_is_python_buildr�r��pybuilddir.txtrSr�z
$)r�)r�r�r�r�)r�rrr�r.r�r0r+r�rr,r�r�r�r�r�r�rr�r-r�r�r�rbr�r�r�)r5rcr�r�rr�r�r�r�r�r�r"r�r�s&             r�#test_init_is_python_build_with_home�3InitConfigTests.test_init_is_python_build_with_home's����*�*�,���x� �!6�7���G�G�O�O�(�(��/�	��D��7�7�=�=��&�&���w�w�~�~�b�g�g�l�l�4��9�:�:��w�w���t�,����
�I�I�/��y�9�:�#�#���:��W�W�\�\�$��.�F�$�A�h������T�6�(B�F�K�N��)�)�/�/�0��#�2B�2B�2H�2H�1I�J�G��W�W�\�\�$����&��	�*��8V�W�F�!�5�5�T�5�T�N�
�D�!�>��f��6��;����i��&�	
���4��y�9��(+��$�%�%&��!�"�	
���:�F�#-�3�d�	�	L�),��$�%�%&��!�"���������0��
�"�'�'�,�,�v�'7�8�6�
J�
J�a�57�W�W�5E�5E������V����z��%5�%@�%@�%B�1�%E�F�6H�N�
�
�1��2�K��z��Z�Z�F��/�/�K� $� 8� 8�� 8� G�� J�N�1���M�M��&1�
�
Q�	
���:�F�#-�3�d�	�	L�%K�
J�s�7A.M*�&M*�*M:	�3M:	c��UO2oUQ*Q*o[OOO	U2oVAQ$QU-oU!)rcr�r�r�)r�rrr�r.)r5rc�all_configsr�r�r"s&&    r�copy_paths_by_env�!InitConfigTests.copy_paths_by_envvsP���/�/�1���H�%�&;�<���G�G�O�O�(�(��/�	�#,�� ��Y�'���
rzSee test_init_pybuilddir_win32c�l�UO29^tt^2o[OQ29%fPoQo[OOV2o[OO
[OOVQ22o[OU2[OOUQ2o[UQQQ59^tt^2oUOU2PPP2UO2oVXQ$VHP$UOo	Q[OQ2Q	[OQ
2QU	QU	Q
UQU-o
UOU
2oUOQU
[UP	UQ5PPP2P!)%fhK�9h)%fhP!9h)�VPATH�libdirr�r�r?rSr�r�r�r�r�r�r-r�r�r�r�r"r�rE���)r��	sysconfig�get_config_varrrr.r��mkdirr�rCr�r/r�rr�)r5rD�vpathr�r��	stdlibdirrEr�r�r-rcr"s&           r�test_init_pybuilddir�$InitConfigTests.test_init_pybuilddir~sd���
$�
$�
&�
&�&��,�,�W�5�;�;��E��F��W�W�\�\�&�1�F����(�(������f�U�)K�L�I��H�H�V���w�w�|�|�F�,<�=�H��h��f�5�5������ �6�#'�":�":�"<��&/��#�&,��#����J�"�I�$<�$<�]�$K��y�7�7��A�!�:��j�%�':��i�
�F��(�(��0�C��"�"�#<�f�'1�s�15�6�
#�
C�9'�
&�6�5��'�
&�
&�s6�F"�B-F"�%F	�7BF"�F
�F
�F"�"F3	�+F3	zSee test_init_pybuilddirc��[OQ2oQo[OO	U2O[O2]6Xc![OOUQ2oUOU29^tt^2o[OO	[OOV122o[OO	[OOV1Q22o[OU2[OOUQ2o[UQQQ59^tt^2oUOU2PPP2UO2o[OOU[OOUQ*22UQ$V8Q$VXP$UOo	QUQ	UQ
U	QU	QUQ
UQUQU-o
UOU
2oUO!QU
["UP
UQ5PPP2P!)%fhK�9h)%fhP!9h)r�zPCbuild\arch�instrumentedr�r�r?rSr�r�r�r�r-r�r�r�r�rr����r�)r�r�rrr��count�sepr.r�r�r�rCr�rr/r�rr�)r5r�r�rDr�r�rEr�r�r-rcr"s&           r�test_init_pybuilddir_win32�*InitConfigTests.test_init_pybuilddir_win32�s����(�(��1�� ��
�7�7���E�"�(�(����0�A�5��W�W�\�\�&�.�9�F�
�
$�
$�V�
,�
,���W�W�%�%�b�g�g�l�l�6�&A�B�F����(�(������f�U�)K�L�I��H�H�Y���w�w�|�|�F�,<�=�H��h��f�5�5������ �6�#'�":�":�"<��&(�g�g�l�l�6�2�7�7�;K�;K�L_�`b�Lc�;d�&e���#�&,��#�&/��#����J�"�F��v�!�:��j��&��v�%�':��i�	�F��(�(��0�C��"�"�#<�f�'1�s�16�F�
#�
D�9-�
,�6�5��-�
,�
,�s2�CH:�H'	�,B1H:�'H7
�0H7
�2H:�:I	�I	c��UO29^tt^2o[O29^tt^2o[Oo[
OQ2o[OOU[2o[OOU2%(o[%fh[OOU[OQUOQUO[ 0Q2o[O"U2L�[OOUQ2o[O"U2[$O&[OO[(O*Q2[OOUQ22[OOUQ2o	[-U	QQQ	59^tt^2o
[/Q
U*U
Q5[/QU
Q5PPP2UO12o[%fU%cWUP$Le[OOU[OO3U]*22U[OOUQ2,oUO4o[OOU[OO3U22o
Q
UQUQUQU
QUQU-oU%cV.Q$[%cJV.Q
$[OOUQ2UQ$[7[(O8%(2UQ$L0UO:UQ$[7[(O8%(2UQ$UO=U2oUO?QU[@UP	UQ5PPP2PPP2P!)%fhCK�9h)%fhK.9h)%fhP!9h)r�r
rr�r�rz
pyvenv.cfgr?rSr�z	home = %s��filez$include-system-site-packages = falser�r�r�r-r�r�r�r�rr�)!r�rArBr,r�r�r�rrr.�PLATSTDLIB_LANDMARKr�rr�r�r�r�r�r�r�r�
STDLIB_DIRr�rUr�rr/r�r�r�r�rr�)r5rD�pyvenv_homer�r��
platstdlib�change_exec_prefix�lib_dynload�
lib_folderrEr�r�r-r�rcr"s&               r�test_init_pyvenv_cfg�$InitConfigTests.test_init_pyvenv_cfg�s����
$�
$�
&�
&�&�
�
(�
(�
*�
*�k��"�"�C�#�2�2�8�<�K������k�3F�G�J�%'�W�W�]�]�:�%>�!>���:� �g�g�l�l�;�+.�>�>�-3�C�I�I�;�a��	�	�{�:�,�+W�+8�:�����K�(��W�W�\�\�+�u�=�
����J�'�����G�G�L�L��!3�!3�W�=��G�G�L�L��W�5��
�w�w�|�|�F�L�9�H��h��f�5�5���k�K�/�b�9��<�2�F�6��,�,�.�E��:�%� +�E�"�I���G�G�L�L�����)9�)9�%��(�)C�D���G�G�L�L��e�4������J� �g�g�l�l�;����8H�8H��8T�U�O��{��v��&�!�?��j�%�u�
�F�"�-8�)�*��z�(3�}�%�')�w�w�|�|�K��'G��|�$�/3��8H�8H�4H�/I��+�,�(,�'9�'9��|�$�/3��8H�8H�4H�/I��+�,��(�(��0�C��"�"�#<�f�'1�s�15�6�
#�
C�+�'�
&�46�5�5��3+�
*��'�
&�
&�sn�O-�A:O	�3D4O	�'"O
�	#O	�-O	�5C	O	�?O	�B%O	�4O-�O�O�	O	�O*
�#O*
�%O-�-O>	�6O>	zspecific to Windowsc	��Q
QQQ
QQ[O2Q01,oUOQ-[2AQ[OO
O
QU22-AQ5vq#UOUP2[OU2oUQ*Q	*o[V2FDvvqVoUOVv2J	P![OcSOQS802Kgh9h)�	C:/a. . .za. . .z\arr�c3�>�SF �Dp]*w�	J	P!3h)rr)�.0�cs& r�	<genexpr>�=InitConfigTests.test_getpath_abspath_win32.<locals>.<genexpr>"s��%���%�Q�a�D�D�%�s�r�r�rcr�)r��	C:\a. . .)r�r�)z\\?\C:////a////b. . .z\\?\C:\a\b. . .)z//a/b/c. . .�\\a\b\c. . .)r�r�)
rr2r]r$rr�r.rVrrr�r��zip)r5�CASESr[r\rr�r�results&       r�test_getpath_abspath_win32�*InitConfigTests.test_getpath_abspath_win32s��
)�(�@�0�4�
�"�)�)�+��c�*�+�

���0�0�)�J�(�*�J��r�w�w���3�3�3H�%�3H�H�J�1�
���
	
����b�!�	9��*�*�S�/�C��h�-� 5�6��%(��%8�!�M�Q�6����V�.�&9��	�#�#�	9��I�I�/��w�7�8�	9�s�C�D�*D�Dc�`	�[OQ2n	U	1QkoUQ2oUQ2oUQ2oUQ2oUQ2oUQ2o[O2Q*oUO	[U2O
[OO22UQ	*2UO	U2UQ
*2UO	U2UQ*2UO	U2UQ*2UO	U2UQ
*2UO	U2UQ*2P!)�ctypesc�f:�[ROU2oQUmROUmU!)Nr)�getattr�	pythonapi�argtypes�	c_wchar_p�restype)r�funcr�s& �r�get_func�8InitConfigTests.test_global_pathconfig.<locals>.get_func<s.����6�+�+�T�2�D��D�M�!�+�+�D�L��Kr�
Py_GetPath�Py_GetPrefix�Py_GetExecPrefix�Py_GetProgramName�Py_GetProgramFullPath�Py_GetPythonHomercr�r�r�r�r-r�)
rr�r��get_configsrV�tuplerrrr�)
r5rrr	r
rrr
rcr�s
&        @r�test_global_pathconfig�&InitConfigTests.test_global_pathconfig.s ����,�,�X�6��	��l�+�
���/��#�$6�7��$�%8�9�� (�)@� A��#�$6�7��"�.�.�0��:������z�|�1�1�"�'�'�/�/�B�C�� 5�6�	8��������)9�:����)�+�V�M�-B�C����*�,�f�^�.D�E����.�0�&��2F�G����)�+�V�F�^�<rc�r�,QNo-oQ]Q,QN-o[V#2VQ$UOQV2[Q5P!)�ignore:::PyConfig_Insert0r�r�r_�test_init_warnoptionsr)rr^z
ignore:::env1z
ignore:::env2zignore:::cmdline1zignore:::cmdline2rzignore:::PySys_AddWarnOption1zignore:::PySys_AddWarnOption2zignore:::PyConfig_BeforeReadzignore:::PyConfig_AfterRead)r/z-Wignore:::cmdline1z-Wignore:::cmdline2rN)r5r_rbrcs&   rr�%InitConfigTests.test_init_warnoptionsSsQ��+���	��Q��1�
��	�	�*� +�}�����6��#-�	�	/rc
�t�QP	-oQQQQP	-Q]
QP	Q]-o[V2UOQV![P	Q	5P!)
rlr�r$r�r`rurtry�test_initconfig_api)r�r�)rdrr�rs&  rr�#InitConfigTests.test_initconfig_apimsb��
��
�	�
�3����.����T��a�
��	�	�*�	
���4�f�#/�t�	�	Erc�*�UOQ2P!)�test_initconfig_get_api�r]r?s&rr�'InitConfigTests.test_initconfig_get_apis���%�%�&?�@rc�*�UOQ2P!)�test_initconfig_exitrr?s&rr�$InitConfigTests.test_initconfig_exit�s���%�%�&<�=rc�*�UOQ2P!)�test_initconfig_modulerr?s&rr!�&InitConfigTests.test_initconfig_module�s���%�%�&>�?rc�*�UOQ2P!)�test_get_argc_argvrr?s&rr$�"InitConfigTests.test_get_argc_argv�s���%�%�&:�;rc��.QloSFD�vq#QU0oUOQ2%cUQ*oLP	oQP	QQ,QQQ	UQQ
,QQQQ
QP	QQU-QU-oU%cQUQ*-LPoUO[U229^tt^2UOQU[UQ5PPP2J�	P!)%fhJ�9h)�=onr��frozen_modulesrrkr�r�r�r�r2r3r�r�r+rrr�r��
TESTFROZEN�test_init_use_frozen_modules)r�r">�z=offF��T�r�T�r'T)r!r�reprrr)r5�testsrr�optval�
xoption_valuercr"s&       rr*�,InitConfigTests.test_init_use_frozen_modules�s���
��#�M�C�%�c�U�+�F��~�~�c�"�"� #�B��
� $�
��d�����i��v�t�V�D��	��x�!�4��-�}�=�$�h�	�F�.1�<��R��)�d�C����d�3�i�(�(��&�&�'E�v�+5�3�'�@�)�(�##�")�(�(�s�B/	�/C
�8C
c�\�] oQoQoQoQoQ	oQV*U*U*U*QP	-oUOQ2vq�UOU	P2[OU2oUOV�2P![OcSOQS802K?h9h)
r��
feature_flags�own_gil�#test_init_main_interpreter_settingsr���ii�i)r]rVrrr�r�)
r5�OBMALLOC�
EXTENSIONS�THREADS�DAEMON_THREADS�FORK�EXECrr[r\s
&         rr8�3InitConfigTests.test_init_main_interpreter_settings�s������
���������
���$�&��0�>�A��t�	
���0�0�1�
���	
����b�!�	9��*�*�S�/�C�	
����'���#�#�	9��I�I�/��w�7�8�	9�s�A>�>B+�B+�*B+c�R�UOQ2vqUOUP2P!)�test_init_in_background_threadr�r�s&  rrC�.InitConfigTests.test_init_in_background_thread�s'���0�0�1Q�R�������b�!rc�R�UOQ2vqUOUP2P!)�+test_isinitialized_false_during_site_importr�r�s&  rrF�;InitConfigTests.test_isinitialized_false_during_site_import�s'���0�0�9�;�������b�!r)r/)r]rqrr)�Py_UTF8Modero))�Py_BytesWarningFlagr�)�Py_DebugFlagr�)�Py_DontWriteBytecodeFlagr�T)� Py_FileSystemDefaultEncodeErrorsr�)�Py_FileSystemDefaultEncodingr�)�
Py_FrozenFlagr�T)�Py_IgnoreEnvironmentFlagrrT)�Py_InspectFlagr�)�Py_InteractiveFlagr�)�Py_IsolatedFlagrq)�
Py_NoSiteFlagr�T)�Py_NoUserSiteDirectoryr�T)�Py_OptimizeFlagr�)�Py_QuietFlagr�)�Py_UnbufferedStdioFlagr�T)�Py_VerboseFlagrT))�Py_LegacyWindowsFSEncodingFlagrp))�Py_LegacyWindowsStdioFlagr�r>)NNNN)NN)krvrwrxryr�rr��objectr�r�r��PYMEM_ALLOCATOR_NOT_SETrr�rrrr�rr�r,�int_info�default_max_str_digits�DEFAULT_THREAD_INHERIT_CONTEXT�DEFAULT_CONTEXT_AWARE_WARNINGSr�rr�rr7r/�is_applerrr�r�r�rLr��classmethodr�r�r�r�r�r�r�r�rr��skipIf�check_bolt_optimizedrrrrr.r?rBrGrJrMrRrVr\rarerhrkrnrqrtryrr�r�r�r�r�r�r��
contextlib�contextmanagerr�r�r�r�r�rXr�r�r�rrrrrr!r$r*r8r�requires_working_threadingrCrFrzr{r|s@rrgrgys������G�+5��;L�� ����H�M�	�
��,��e��D��5����T����� � �(�%�"
�	��.���*�$�	���0�!����������O�R��
�R��E�R�	�4�R�	�E�	R�	"�4�
R�	��R�	�Q�R�	�c�l�l�A�A�R�	�R�R�	��R�	�q�R�	�!�R�	�q�R�	��R� 	!�"@�!R�"	!�"@�#R�$	�T�%R�&	�%�'R�(	�U�)R�*	�$�+R�,	��-R�.	�e�/R�2	�1�3R�4	�/�5R�8	�$�9R�:	�*�;R�<	�e�=R�>	���?R�@	�R�AR�D	�B�ER�F	�r�GR�J	�$�KR�L	��MR�N	�(�OR�P	�-�QR�T	�$�UR�V	�)�WR�X	�)�YR�Z	�.�[R�\	�1�]R�^	"�4�_R�`	�c�n�n�aR�b	�(�cR�f	�t�gR�h	��iR�j	 ��kR�l	�5�mR�n	�u�oR�p	�a�qR�r	��sR�t	�$�uR�v	�1�wR�x	��yR�z	��{R�|	�t�}R�~	�U�R�@	�$�AR�D	�,�ER�F	�*�GR�J	!�%�KR�L	�t�MR�N	�d�OR�P	��QR�R	�d�SR�V	�d�WR�X	�	�YR�Z	�t�[R�\	�d�]R�^	�'�"2�"2�2��U��M�cR�M�f�$)�
�j�!�����'+�
�m�$�����&(�
�l�#�(:�
�n�%�����"�E�
�	�����-2�
�)�*�������M�
�=�!���!��� %�����!�
�O��27��.�/�	*�1�"�A�.����	%�����(��%�%�'
�	�	�!�!�#
�	��O��#��#��<�>� 78�r/�+�$=�,4�>B�4�#�	4�38�	4�>B�	4�l�_�_�W�1�1�3\�]�N�^�N�M�J�/�,C/�J�_�_�W�1�1�3\�]�!/�^�!/�F�_�_�W�1�1�3\�]�"/�^�"/�H/�/�	/�/�$1�$R�Q�Q�Q�N�M�J�/�L�(M�S�$	O�/�� 3�,L�2�&������6+L�ZML�^��_�_�Z�!A�B�!C�C�!C�F����%?�@�&D�A�&D�PEC�N����%:�;�/�<�/�6#=�J/�4�_�_�W�1�1�3\�]�E�^�E�"A�>�@�<�@�8(�0�0�0�2�"�3�"�"�"rrgc�|`�\sQsQsnQsQsQsQsQsQs	Qs
Q	sQ
sQs
QsQ
sQsQsQsQsUsP!)�
AuditingTestsi�c�*�UOQ2P!)�test_open_code_hookrr?s&rrk�!AuditingTests.test_open_code_hook�s���%�%�&;�<rc�*�UOQ2P!)�
test_auditrr?s&rrn�AuditingTests.test_audit�s���%�%�l�3rc�*�UOQ2P!)�test_audit_tuplerr?s&rrq�AuditingTests.test_audit_tuple�s���%�%�&8�9rc�*�UOQ2P!)�test_audit_subinterpreterrr?s&rrt�'AuditingTests.test_audit_subinterpreter�����%�%�&A�Brc�L�UOQ[O]Q5P!)�test_audit_run_command�rBrC�r]r�
SHORT_TIMEOUTr?s&rrx�$AuditingTests.test_audit_run_command�s$���%�%�&>�.5�.C�.C�12�	&�	4rc�L�UOQ[O]Q5P!)�test_audit_run_fileryrzr?s&rr~�!AuditingTests.test_audit_run_file�s$���%�%�&;�.5�.C�.C�12�	&�	4rc���[OOUO[O
2Q*o[
UQQQ59^tt^2o[QUQ5[QUQ5PPP2-[2AQU-AoUOQ[O]
UQ	5[OU2P!)%fhK\9h[OS2h9h)
rRr?r�r�z
import sysr�z&sys.__interactivehook__ = lambda: NonerL�test_audit_run_interactivehook�rBrCr"�
rrr.r3r�TESTFNr�rUr$r]rr{�unlink�r5�startupr�r"s&   rr��,AuditingTests.test_audit_run_interactivehook�s����'�'�,�,�t�{�{�I�,<�,<�=��E��
�'�3��
1�
1�Q��,�Q�'��:��C�2�	�G�*�,�G�o�w�G�C��)�)�*J�29�2G�2G�57�S�
*�
B�
�I�I�g��2�
1��
�I�I�g��s�C�;3C�C	�C	�C1c���[OOUO[O
2Q*o[
UQQQ59^tt^2o[QUQ5PPP2-[2AQU-AoUOQ[O]
UQ5[OU2P!)%fhK\9h[OS2h9h)	rRr?r�r�r3r�rL�test_audit_run_startupr�r�r�s&   rr��$AuditingTests.test_audit_run_startup�s����'�'�,�,�t�{�{�I�,<�,<�=��E��
�'�3��
1�
1�Q��&�q�!�2�	�G�*�,�G�o�w�G�C��)�)�*B�29�2G�2G�57�S�
*�
B�
�I�I�g��2�
1��
�I�I�g��s�B9�.3C�9C		�C		�C$c�L�UOQ[O]Q5P!)�test_audit_run_stdinryrzr?s&rr��"AuditingTests.test_audit_run_stdin�s$���%�%�&<�.5�.C�.C�12�	&�	4rc�*�UOQ2P!)�test_get_incomplete_framerr?s&rr��'AuditingTests.test_get_incomplete_framervrc�*�UOQ2P!)� test_gilstate_after_finalizationrr?s&rr��.AuditingTests.test_gilstate_after_finalizations���%�%�&H�Irc�*�UOQ2P!)�test_thread_state_ensurerr?s&rr��&AuditingTests.test_thread_state_ensure	s���%�%�&@�Arc�*�UOQ2P!)�test_main_interpreter_viewrr?s&rr��(AuditingTests.test_main_interpreter_views���%�%�&B�Crc�*�UOQ2P!)�"test_thread_state_ensure_from_viewrr?s&rr��0AuditingTests.test_thread_state_ensure_from_views���%�%�&J�Krc�*�UOQ2P!)�#test_concurrent_finalization_stressrr?s&rr��1AuditingTests.test_concurrent_finalization_stresss���%�%�&K�Lrr)rvrwrxryrkrnrqrtrxr~r�r�r�r�r�r�r�r�r�rzr{r|s@rriri�s]����=�4�:�C�4�
4�
�
�4�
C�J�B�D�L�M�Mrric�0`�\sQsQsnQs\O\OQ6HQ2\O\	PIQ2Q22s
\O\OQ2Q2s\O\OQ	2Q
2sQsUsP!)�	MiscTestsic�*�UOQ2P!)�test_unicode_id_initrr?s&rr��MiscTests.test_unicode_id_inits��	
�%�%�&<�=rrz(Py_FrozenMain is not exported on Windowsrec��[[O2oQUQ$UOQUQ5vq#[OOQ2o[OQUQ02O2oUOV%2P!)r��PYTHONUNBUFFERED�test_frozenmainr�r�z�
            Frozen Hello World
            sys.argv ['./argv0', '-E', 'arg1', 'arg2']
            config program_name: ./argv0
            config executable: z�
            config use_environment: True
            config configure_c_stdio: True
            config buffered_stdio: False
        )
rrrr]rr�r�r��lstriprV)r5r"r[r\r-rs&     rr��MiscTests.test_frozenmains����2�:�:���"%�����0�0�1B��0�L����W�W�%�%�i�0�
��?�?�( �!+�|�,	�	$�
��V�X�	�	
����'rz--X showrefcount requires a Python debug buildc
���Q
oSFCD@vq#QU0o[OQQQQUQU,o[OU[O[O
P	Q5oUO
UO]2UOO2o[OQU2oU%fUOQU802[UO]22o	[UO]22o
UOV#Q	59^tt^2UO
U	]U2UO
U
]U2PPP2CJC	P!)%fhCJY9h)�offzfrozen_modules=rXr2�showrefcountr��rHrI�textz!^\[(-?\d+) refs, (-?\d+) blocks\]zunexpected output: )r(�stmt))r�r3)�onr3)r��import __hello__)r�r�)r,r-rNr�rO�STDOUTrVrCrHr�rfrgr�r��groupr)r5r1�flagr��xoptrXr�r[rg�refs�blockss&          r�test_no_memleak�MiscTests.test_no_memleak0s��
�� �J�D�$�T�F�+�D��>�>�4��~�t�T�4�QU�V�C��>�>�#�)3���)3�):�):�'+�-�D�
���T�_�_�a�0��+�+�$�$�&�C��H�H�A�3�G�E���	�	�/��w�7�8��u�{�{�1�~�&�D�����Q��(�F����T��=�=�� � ��q�#�.�� � ���C�0�>�=� �>�=�=�s�'E	�E 
�E 
z(-X presite requires a Python debug buildc�T�[OQQQQQ,o[OU[O[O
P	Q5oUO
UO]2UOO2oUOQU2UOQU2P!)rXr2z'presite=test._test_embed_structseq:mainr�zprint('unique-python-message')r�zTests passedzunique-python-message)r,r-rNr�rOr�rVrCrHr�r�)r5rXr�r[s&   r�test_presite�MiscTests.test_presiteLs���
�N�N��$�A��2�
��
�~�~���?�?��$�$��	
��	
������!�,��k�k���!���
�
�n�c�*��
�
�-�s�3rr)rvrwrxryr�r�rcrrr�r�rXrr�r�r�rzr{r|s@rr�r�s�����>��_�_�R�W�W��_�?�A�
�_�_�&�$�.�0L�M�(�N�A�(� ����)�)�H�J�1�J�1�4����)�)�C�E�4�E�4rr��__main__)E�testr�test.supportrrrrr��collectionsrrerr�os.pathrfr�rNr,r�rAr��has_subprocess_supportr�r��ImportError�platformr�r\ra�PYMEM_ALLOCATOR_MALLOC�PYMEM_ALLOCATOR_MIMALLOCr/r6�hasattrr7r�rr�r��
MAX_HASH_SEEDr�rr�r�r�r��
VERSION_MAJORr��
VERSION_MINORr_r`rr.r��STDLIB_INSTALL�isfiler:rr$r&�TestCaserrdrcrgrir�rvrsrrr�<module>r�s����O�O��"���	��	�
��
�����%�%�%�
�
�
�=�
>�>���


����	!����������
����3��1���3��$���
�
�
���
�
��
��+�+�+�S��
��7�7�d�?� �^�^�,���$�$�*�*�M��$�$�*�*�M�!�n�n�-�W�]�O�1�+�_�Z�L��F��'.�&=�&=�&=��1��&-�&=�&=�&=��1�������c�j�j�#�.�.��S�
�
�
#�
#�$�A�c�&6�&6�&<�&<�%=�>�@��	�w�w�~�~�b�g�g�l�l�>�7�;�<�<��N�+��5��o!�o!�dc:�(�(�*;�*;�c:�L
�
���"�d�*�,H�I�Q"�)�8�+<�+<�Q"�J�Q"�h*EM�'��):�):�EM�PG4�#�X�%6�%6�G4�T�z���M�M�O���OB�����s�/J�J"�J"�!J"

Youez - 2016 - github.com/yon3zu
LinuXploit