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_sysconfig.cpython-315.opt-2.pyc
R
>lqj��c��]PHs]PHs]PHs]PHs]PHs]PHs]PHs]PHs]PH s]QH$G
s
]QH,Gs]QH0G
s
]QH8GsGsGsGsGsGs]QHTGs]QH\GsGsGsGsGs]QHtGs]PH|s]QH|G s G!s!G"s"G#s#G$s$G%s%G&s&G's'G(s(G)s)G*s*G+s+G,s,]Q	H�G.s.G/s/G0s0G1s1]PH�s2]PH�s3\Ohs5Q
Q\Ol\2s7QQ
\Ol2s8QQ\Ol2s9\:Q6Xc\Ov2P!P!)�)�patch)�copy)�support)�captured_stdout�
is_android�is_apple_mobile�is_wasi�
PythonSymlink�requires_subprocess)�
import_module)�TESTFN�unlink�skip_unless_symlink�
change_cwd�EnvironmentVarGuard)�VirtualEnvironmentMixin)
�	get_paths�get_platform�get_config_vars�get_path�get_path_names�_INSTALL_SCHEMES�get_default_scheme�get_scheme_names�get_config_var�_expand_vars�_get_preferred_schemes�is_python_build�
_PROJECT_BASE)�_main�_parse_makefile�_get_pybuilddir�_get_json_data_namec�``�\sQs])snU1QksU1QksQsQsQsQs	Qs
QsQ	sQ
s
QsQsQ
sQsQs\O(\Q2\O(\\O0Q02Q22sQs\\2Q22sQsQs\O(\O0Q6HQ2Q2s \O(\!OD2%(Q2Q2s#\O(\!OD2%(Q2\O(\O0Q6HQ2\O(\$OJQ2]6HQ2Q222s&Qs'\OP\O0Q 6HQ!2\2Q"22s)\O(\Q2\O(\\O0Q#02Q$22s*Q%s+\O(\$OJQ&2PIQ'2\O(\!OD2%(Q2Q(22s,\OP\O0Q)6HQ*2Q+2s-\O(\$OJQ,2PIQ-2Q.2s.\OP\O0Q/6HQ02Q12s/\OP\O0Q 6HQ22Q32s0Q4s1Q5s2Q6s3Q7s4Q8s5\2Q92s6\O(\7OpQ:6gQ;2\O(\Q<2\O(\99%f\Q=2Q>222s:Q?s;Q@s<Us=U9s>!)A�
TestSysConfigc�:�[[U_2PUm[O
Q*Um[[Q2%c1[OUm	[O2Um
LPUm	UOQ2UO[m	[OUm
[OUm[OUm[O Um[O"Um[O$Um[O&Um[O
O(Um[O
O*Um[O
O,Um[.O0[3[.O021Um,Um,UmQFDgoU[O:7c5UO8O=U[O:U*12JLUO6O=U2Ji	P!)N�NNN�uname)�r(r(r(r()�MACOSX_DEPLOYMENT_TARGET�PATH)�superr$�setUp�maxDiff�sys�path�sys_path�hasattr�osr'�_uname�
_set_uname�
_get_uname�name�prefix�exec_prefix�platform�version�
_framework�sep�join�isabs�
splitdrive�	sysconfig�_CONFIG_VARSr�_config_vars�_added_envvars�_changed_envvars�environ�append)�self�var�	__class__s& ��(C:\Python315\\Lib\test\test_sysconfig.pyr,�TestSysConfig.setUp+s_���
�m�T�(�*����������
��2�w������D�J��(�(�*�D�K��D�J��O�O�G�$��?�?����G�G��	��j�j����?�?�������
��{�{����.�.����6�6����G�G�L�L��	��W�W�]�]��
��'�'�,�,���%�2�2�D��9O�9O�4P�P��� ��� "���7�C��b�j�j� ��%�%�,�,�c�2�:�:�c�?�-C�D��#�#�*�*�3�/�	8�c�J:�UO[OQ$UO2UOdUO[
mL[
;UO[
mUO[mUO[mUO[m	UO[m
UO[mUO[
mUO[
Om
UO[
OmUO[
OmUO ]*["m["O$O'2["O$O)UO ]*2UO*FDvqU[
O,U$J	UO.FD#o[
O,O1UP2J%	[2[4U_o2P!)r&)r0r.r/�_cleanup_testfnr'r2r6r7r8r9r:r;r<r=r>r?rBr@rA�clear�updaterDrErC�popr+r$�tearDown)rGrH�valuerIs&  �rJrR�TestSysConfig.tearDownKsK����m�m�����������:�:�!��z�z�B�H����)�)����[�[��
��*�*����}�}����l�l��������������y�y������
�
����
�!�_�_�����!%�!2�!2�1�!5�	�����$�$�&����%�%�d�&7�&7��&:�;��/�/�J�C�#�B�J�J�s�O�0��&�&�C��J�J�N�N�3��%�'�	�m�T�+�-rLc�>�[OU2UmP!�N)r2�uname_resultr3)rGr's&&rJr4�TestSysConfig._set_unamefs���o�o�e�,��rLc��UO!rV)r3�rGs&rJr5�TestSysConfig._get_unameis���{�{�rLc��[o[OOU2%c[OU2P![OOU2%c[OU2P!P!rV)rr2r/�isfile�remove�isdir�shutil�rmtree)rGr/s& rJrN�TestSysConfig._cleanup_testfnlsI����
�7�7�>�>�$����I�I�d�O�
�W�W�]�]�4�
 �
 ��M�M�$��!rLc�X�UO[2[O2P!rV)�assertEqualrr@�_SCHEME_KEYSrZs&rJ�test_get_path_names�!TestSysConfig.test_get_path_namesss������)�9�+A�+A�BrLc���[2o[2o[UP2o[UO	22o[UO	22oUOV2P!rV)rrr�sorted�itemsrd)rG�scheme�default_scheme�wanteds&   rJ�test_get_paths�TestSysConfig.test_get_pathsvsK�����+�-���n�d�3�������'�������'������(rLc��[2o[OQ6XcUQQ-*o[FD�o[U*FD}o[U*U*OQ-U@oUO[OO[V222[OOU22J	J�	P!)�nt�
platlibdir�lib�)	rr2r6r�formatrdr/�normpathr)rG�config_varsrkr6�expecteds&    rJ�
test_get_path�TestSysConfig.test_get_path~s���%�'��
�7�7�d�?�&��u�(=�=�K�&�&�F�(��0�0��+�F�3�D�9�@�@�O�;�O��� � ��G�G�$�$�X�d�%;�<��G�G�$�$�X�.��1�'rLc�D�UO[2[2P!rV)�assertInrrrZs&rJ�test_get_default_scheme�%TestSysConfig.test_get_default_scheme�s���
�
�(�*�,<�=rLc���.QloQ[m[2oUOU[2UO[
U2U2Q[m[2oUOU[2UO[
U2U2Q[mQ[mQ[m	UOU[2UO[
U2U2P!)r7rq�posix�darwin�MyPython>�home�userr7)
r2r6r�assertIsInstance�dictrd�setr.r9r;)rG�expected_schemes�schemess&  rJ�test_get_preferred_schemes�(TestSysConfig.test_get_preferred_schemes�s���5�����(�*�����g�t�,�����W��'7�8����(�*�����g�t�,�����W��'7�8�������#������g�t�,�����W��'7�8rLc	��QoQo[OOQQ[O20Q2o[OOQU2o[OOQU2o[OOQU2oQ
oSTt-tFDpUQaJ	ooUOU[OQQUQ52UOU[OQ	QUQ52[OQQUQ5oUOVr[O*2P!ttoh)�bin�includers�python�
site-packages�venv�scripts�
posix_venv�rk�vars�purelib��base�platbase�installed_base�installed_platbase)	r2r/r=r@�_get_python_version_abirdr�assertStartsWithr<)rG�binpath�incpath�libpath�basesr�r��sysconfig_includedirs&       rJ�test_posix_venv_scheme�$TestSysConfig.test_posix_venv_scheme�s
�������'�'�,�,�u�!'�	�(I�(I�(K�'L�M�.�0��
�'�'�,�,�v�w�/���'�'�,�,�v�w�/���'�'�,�,�v�w�/��M��).�/���f����/�����)�"4�"4�Y�|�Z^�"_�`�����)�"4�"4�Y�|�Z^�"_�`� )�1�1�)�L�W[�\�����2�b�f�f�4D�E��0s�"
Ec	�6�QoQo[OOQQ2oQo[OOVA2o[OOVB2o[OOVC2oQ
oSTt-tFDpfQaJ	ooUOU[O
QQUQ52UOU[O
QQUQ52UOU[O
Q	QUQ52P!ttoh)�Scripts�Include�Libr�r�r��nt_venvr�r�r�r�)r2r/r=rdr@r)rGr�r�r�r�r�r�r�s&       rJ�test_nt_venv_scheme�!TestSysConfig.test_nt_venv_scheme�s��������'�'�,�,�u�o�6�����'�'�,�,�t�-���'�'�,�,�t�-���'�'�,�,�t�-��M��).�/���f����/�����)�"4�"4�Y�y�W[�"\�]�����)�"4�"4�Y�y�W[�"\�]�����)�"4�"4�Y�y�W[�"\�]��	0s�

Dc��[OQ6Xc�UO[OQQQ5[OQQQ52UO[OQQQ5[OQQQ52UO[OQQQ5[OQQQ52P!UO[OQQQ5[OQQQ52UO[OQQQ5[OQQQ52UO[OQQQ5[OQQQ52P!)�win32r�r�)rkr�r�r�r�)r.r9rdr@rrZs&rJ�test_venv_scheme�TestSysConfig.test_venv_scheme�s,���<�<�7�"�����"�"�9�V�<��"�"�9�Y�?�
�
����"�"�9�V�<��"�"�9�Y�?�
�
����"�"�9�V�<��"�"�9�Y�?�
�

����"�"�9�V�<��"�"�9�\�B�
�
����"�"�9�V�<��"�"�9�\�B�
�
����"�"�9�V�<��"�"�9�\�B�
rLc�j�[2oUOU[2UOU2P!rV)rr�r��
assertTrue)rG�cvarss& rJ�test_get_config_vars�"TestSysConfig.test_get_config_vars�s&���!�����e�T�*�����rLc��[2oUOU[2UOU2Q[m[
QP	QQ59^tt^2UO[2Q2PPP2[
QP	QQ59^tt^2UO[2Q2PPP2Q[m	[
QP	PQ59^tt^2UO[2Q2PPP2Q[mQ[m
Q[m	UOQ62[O[22Q	[2Q
$Q[2Q$[OoQ
[mUO[2Q2Q[mUO[2Q2U[mUOQ72[O[22Q	[2Q
$Q[2Q$[OoQ
[mUO[2Q2Q[mUO[2Q2U[m[O[22Q[2Q
$Q[2Q$UO[2Q2[O[22Q[2Q$UO[2Q2[O[22Q[2Q$UO[2Q2[O[22Q[2Q$UO[2Q2[O[22Q[2Q$UO[2Q2Q8FDVo[O[22QU*[2Q$UO[2Q U*2JX	[!]]2FD_o[O[22Q![2Q$UQ"0[2Q
$UO[2Q#U*2Ja	Q[mQ$[m
Q%[m	UOQ92UO[2Q(2Q[mQ)[m	]	[2Q*$Q+Q,Q-Q.Q/Q.Q0Q.Q'Q1QQ-O#2FDZvqVUO%U29^tt^2UOQ&Q2Q3Q4U12UO[2Q5U02PPP2J\	P!)%fhCK,9h)%fhCK9h)%fhCK�9hS[mh9hS[mh9h)%fhJ�9h):rqz_sysconfig.get_platformr�)�create�return_valuez	win-amd64ztest-plaformr�zU2.5 (r25:51918, Sep 19 2006, 08:49:13) 
[GCC 4.0.1 (Apple Computer, Inc. build 5341)]r�z10.3r)zF-fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes�CFLAGSi���zmacosx-10.3-ppcl����zmacosx-10.3-ppc64zmacosx-10.3-i386zmacosx-10.3-x86_64z10.4zy-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk  -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3zmacosx-10.4-fatz|-arch x86_64 -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk  -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3zmacosx-10.4-intelz�-arch x86_64 -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk  -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3zmacosx-10.4-fat3z�-arch ppc64 -arch x86_64 -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk  -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3zmacosx-10.4-universalz}-arch x86_64 -arch ppc64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk  -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3zmacosx-10.4-fat64�x86_64zm-arch %s -isysroot /Developer/SDKs/MacOSX10.4u.sdk  -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3zmacosx-10.4-%szl-fno-strict-overflow -Wsign-compare -Wunreachable-code-arch arm64 -fno-common -dynamic -DNDEBUG -g -O3 -Wallz.0zmacosx-%d.0-arm64zV2.3.5 (#1, Jul  4 2007, 17:28:59) 
[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)]�linux2�Linux�i686z
linux-i686�android�ANDROID_API_LEVEL�aarch64�	arm64_v8a�arm�armeabi_v7a�armv7l�armv8l�x86�	localhostz3.18.91+z#1 Tue Jan 9 20:35:43 UTC 2018z
android-9-)�Darwin�macziade�8.11.1�]Darwin Kernel Version 8.11.1: Wed Oct 10 18:23:28 PDT 2007; root:xnu-792.25.20~1/RELEASE_I386�PowerPC)r�r�r�r��i386)�ppcr�r��ppc64)r��aglaez2.6.21.1dedibox-r7z #1 Mon Apr 30 17:25:38 CEST 2007r�)rr��strr�r2r6rrdr.r9r:r4�_osx_support�_remove_original_valuesr�maxsize�rangerj�subTest)rG�actual_platform�maxint�arch�macver�machine�abis&      rJ�test_get_platform�TestSysConfig.test_get_platform�s���&�.�����o�s�3�����(����
�,�T��
P�
P����\�^�W�5�Q�
�,�T��
T�
T����\�^�[�9�U�%���
�,�T��
M�
M����\�^�^�<�N����I���������E�	F�	�,�,�_�->�?�8>���4�5�(O���(�#�����	!�$�C�K����\�^�->�?�-�C�K����\�^�-@�A� �C�K����B�	C�	�,�,�_�->�?�8>���4�5�(O���(�#�����	!�$�C�K����\�^�-?�@�-�C�K����\�^�-A�B� �C�K�	�,�,�_�->�?�8>���4�5�(B���(�#�
	
�����):�;��,�,�_�->�?�(B���(�#�
	
�����)<�=��,�,�_�->�?�(B���(�#�	
�����);�<��,�,�_�->�?�(B���(�#�	
�����)@�A��,�,�_�->�?�(B���(�#�
	
�����)<�=�6�D��0�0��1B�C�,F�IM�,M�O��h�'�

���\�^�-=��-D�E�7��B��m�F��0�0��1B�C�,a�O��h�'�?E�h�b�M�O��8�9����\�^�-@�6�-I�J�$����O���������@�	A�	
������6���� ���12���-�.��{��=��m��m��E��h�

��%�'��L�G����g�&�&�����+�z� @�'�!K�L�� � ���:�c�U�1C�D�'�&��qQ�
P�
P��
T�
T�
T��N�
M�
M��2!�C�K��$!�C�K��`'�&�&�sb�V�
V&�V:�/A
W�A
W�4W.	�V#	�V#	�&V7	�/V7	�:W	�W	�
W�
W+�.W?
�7W?
�,Incompatible with WASI mapdir and OOT buildsz; doesn't distribute header files in the runtime environmentc��[O2oUO[OOU2U2P!rV)r@�get_config_h_filenamer�r2r/r])rG�config_hs& rJ�test_get_config_h_filename�(TestSysConfig.test_get_config_h_filename�s-���2�2�4����������x�0�(�;rLc��,QNo[%cUO,QN2UO[2[	[U222P!)rq)rq�
posix_home�posix_prefixr�r�r�)�nt_user�osx_framework_user�
posix_user)�
HAS_USER_BASE�extendrdr�tupleri)rGrms& rJ�test_get_scheme_names�#TestSysConfig.test_get_scheme_names�s6��V���=��M�M�I�J����)�+�U�6�&�>�-B�CrLc	���[29^tt^2oQoUOUOUUOU2PPP2P!)%fhP!9h)�-c)r��1import sysconfig; print(sysconfig.get_platform()))r	rd�	call_real�	call_link)rG�py�cmds&  rJ�test_symlink�TestSysConfig.test_symlink�s@���_�_��K�C����R�\�\�3�/����s�1C�D��_�_�_�s�3A�A"	�A"	c	���[Q2o[%c[Q2o[O[O6goQ	FCD�o[UQ2oU%c^UO
[O[O2oUO
[O[O2oL[O[O6wc]UO
[O[O2oUO
[O[O2o[%fCJ[UQ2o[OOUO
UW]22oUQ6XcE[O2oQUQ0o	UO
Q[OQU	0QU	02oUOVg2CJ�	P!)
r��userbase�platlibr�r�r�z/site-packages�/z/lib/)�stdlib�
platstdlibr�r�)rr�r.�base_prefix�base_exec_prefixr�replacer8r7r2r/rvr@r�rrrd)
rGr�r��adaptr6�global_path�	user_pathrx�py_version_abi�suffixs
&         rJ�test_user_similar�TestSysConfig.test_user_similar�s]���f�%���=�!�*�-�D����3�#7�#7�7��B�D�"�4��8�K��)�1�1�#�/�/�3�?�?�S���|�|�C�O�O�S�_�_�E�����C�J�J�.�*�1�1�#�/�/�3�:�:�N���|�|�C�O�O�S�Z�Z�@���}�$�T�<�8�	��7�7�+�+�K�,?�,?��d�A�,N�O���9�$�&/�%F�%F�%H�N�%�n�%5�^�D�F�'�/�/�!�C�N�N�3C�1�V�H�0M�27��x�0@� B�H�� � ��5�-CrLc���[29^tt^2o[2PPP2UO[WO	2OQ22]6�2P!)%fhKL9h)N�
)rrr��len�getvalue�split)rG�outputs& rJ�	test_main�TestSysConfig.test_main�sH��
�
�
�&��G������F�O�O�-�3�3�D�9�:�Q�>�?��
�s�A#�#A3	�,A3	r�zDoes not apply to Windowsc��[OQ2o[OQ2oUOV2P!)�LDFLAGS�LDSHARED�r@rr|)rG�ldflags�ldshareds&  rJ�test_ldshared_value�!TestSysConfig.test_ldshared_value�s.���*�*�9�5���+�+�J�7���
�
�g�(rLzstub loader has no suffixesc��[OQ2oUOU[O2]*2P!)�SOABI)r@rr|�_imp�extension_suffixes)rG�soabis& rJ�
test_soabi�TestSysConfig.test_soabi�s.���(�(��1���
�
�e�T�4�4�6�q�9�:rL�SOABI_PLATFORMzSOABI_PLATFORM is undefinedc��[OQ2o[OQ2oUOV2P!)rrr)rG�soabi_platformrs&  rJ�test_soabi_platform�!TestSysConfig.test_soabi_platform�s1��
#�1�1�2B�C���(�(��1���
�
�n�,rLc���[OQ2o[OQ2o[OQ*vq4[OQ2o[OOQ2%c.UO
UQUUUQ02UO
V2P![%c/[OQ2oUO
V&QU02P!UOUQ	UQ
U02UOUQ2[OQ6Xc*[O%cUOQ
2P!UOUQ	UQ
U02P!)�LIBRARY�	LDLIBRARY:N�N�ABIFLAGS�winr�z.dll�PYTHONFRAMEWORKz.framework/�	libpython�.z.ar�z2gh-110824: skip LDLIBRARY test for framework build)r@rr.�version_infor9�
startswithrdrr��assertEndsWithr;�skipTest)rG�library�	ldlibrary�major�minor�abiflags�	frameworks&      rJ�test_library�TestSysConfig.test_library�s"���*�*�9�5���,�,�[�9�	��'�'��+����+�+�J�7���<�<�"�"�5�)�)����W��u�g�e�W�X�J�d�&K�L����W�0�
�_�!�0�0�1B�C�I����Y�+�[���(L�M��!�!�'�Y�u�g�Q�u�g�+F�G������.��|�|�x�'�C�N�N�N��
�
�R�S��%�%�i�9�U�G�1�U�G�1L�MrLr�ztest only relevant on MacOSXc��[O2o[OO	2oQU7cUQ[
O[OQQ,[
O[
OUQ5oUO2]*O2oUOQ2oUO2oUOU]2UOV2[OO	2oQUQ$[
O[OQQ,[
O[
OUQ5oUO2]*O2oUOQ2oUO2oUOU]2UOV2P!)r)r�r�)�stdout�stderr�envzutf-8z10.1)r@rr2rEr�
subprocess�Popenr.�
executable�PIPE�DEVNULL�communicate�strip�decode�waitrd)rG�my_platformr<�p�
test_platform�statuss&     rJ�test_platform_in_subprocess�)TestSysConfig.test_platform_in_subprocess�sf�� �,�,�.���j�j�o�o���%��,��.�/��������C���?�?��%�%��

���
�
���*�0�0�2�
�%�,�,�W�5�
�����������#�����4��j�j�o�o���*0��&�'��������C���?�?��%�%��

���
�
���*�0�0�2�
�%�,�,�W�5�
�����������#�����4rL�) doesn't include config folder at runtimec� �[OQ2oUO[OOU2U2UO[OO
U2U2[O%Cc	[OOUQQ2oUO[OOU2U2[OOUQ2oUO[OOU2U2[OQ6XcS[OOUQQ2oUO[OOU2U2P!P![OQ6Xce[OO[O22o[OOU2oUOVQ2P!P!)�srcdirr�zPython.hz
pyconfig.h.inrq�PCz
pyconfig.hr�)r@rr�r2r/r>r_�
_PYTHON_BUILDr=�existsr6�dirname�get_makefile_filename�realpathrd)rGrN�Python_h�
pyconfig_h_in�
pyconfig_h�makefile_dirs&     rJ�test_srcdir�TestSysConfig.test_srcdirsI��
�)�)�(�3��������
�
�f�-�v�6�������
�
�f�-�v�6��"�"�"��w�w�|�|�F�I�z�B�H��O�O�B�G�G�N�N�8�4�h�?��G�G�L�L���A�M��O�O�B�G�G�N�N�=�9�=�I��w�w�$���W�W�\�\�&�$��E�
���������z� :�J�G���W�W��
��7�7�?�?�9�+J�+J�+L�M�L��7�7�+�+�L�9�L����\�2�	 rLc��[OQ2o[[O29^tt^2[OQ2oPPP2UOUW2P!)%fhK$9h)rN)r@rrr2�pardirrd)rGrN�srcdir2s&  rJ�test_srcdir_independent_of_cwd�,TestSysConfig.test_srcdir_independent_of_cwd/sQ���)�)�(�3��
��	�	�
"�
"��.�.�x�8�G�#������)�#�
"�s�A,�,A<	�5A<	�
EXT_SUFFIXz!EXT_SUFFIX required for this testc��[O2oUOUQ*[O2]*2P!)r`)r@rrdrr�rGr�s& rJ�test_EXT_SUFFIX_in_vars�%TestSysConfig.test_EXT_SUFFIX_in_vars7s5���(�(�*������l�+�T�-D�-D�-F�q�-I�JrL�linuxzLinux-specific testc��[Q2o[O2o[OQ2o[
OQU2%cUOQU7U2[
OQU2%c=UOUO22]6XcQoLQoUOV42P!P!)�ctypesr`z)(aarch64|arm|mips|ppc|powerpc|s390|sparc)rez(i[3-6]86|x86_64)$)zi386-linux-gnu.sozx86_64-linux-gnux32.sozi386-linux-musl.so)zx86_64-linux-gnu.sozx86_64-linux-musl.so)rr9r�r@r�re�matchr��sizeof�c_char_pr/)rGrgr�r�expected_suffixess&    rJ�test_linux_ext_suffix�#TestSysConfig.test_linux_ext_suffix>s����x�(���"�"�$���)�)�,�7��
�8�8�?��I�I��O�O�G�v�-�v�6�
�8�8�(�'�2�2��}�}�V�_�_�.�/�1�4�$g�!�$Q�!�����:�3rL�PY_BUILTIN_HASHLIB_HASHESz0PY_BUILTIN_HASHLIB_HASHES required for this testc��[O2oUOUQ*OQ22P!)ro�")r@r�assertFalser.rbs& rJ�&test_PY_BUILTIN_HASHLIB_HASHES_in_vars�4TestSysConfig.test_PY_BUILTIN_HASHLIB_HASHES_in_varsLs1���(�(�*������9�:�E�E�c�J�KrLr�zAndroid-specific testc��[O2o[OQ2oQQQQQQQQQQQ	Q
-U*oUO	UQUQ02P!)
r`r�zaarch64-linux-androidr�zarm-linux-androideabir�r�r�zi686-linux-androidr�zx86_64-linux-android�-z.so)r9r�r@rr/)rGr�r�expected_triplets&   rJ�test_android_ext_suffix�%TestSysConfig.test_android_ext_suffixRss���"�"�$���)�)�,�7���.��*��-��-��(��,�

����	
���F�a�(8�'9��$=�>rLzOS X-specific testc�X�[OQ2oUOUQ2P!)r`z
-darwin.so)r@rr/)rGrs& rJ�test_osx_ext_suffix�!TestSysConfig.test_osx_ext_suffix`s"���)�)�,�7�����F�L�1rLc���UOQ[O22[OQ2oUOUQ2UO	U[
O2P!)�Py_DEBUG�r�)r|r@rrrdrr~)rGr~s& rJ�test_always_set_py_debug�&TestSysConfig.test_always_set_py_debugesM���
�
�j�)�";�";�"=�>��+�+�J�7���
�
�h��'�����7�#3�#3�4rLc���UOQ[O22[OQ2oUOUQ2UO	U[
O2P!)�Py_GIL_DISABLEDr)r|r@rrrdrr�)rGr�s& rJ�test_always_set_py_gil_disabled�-TestSysConfig.test_always_set_py_gil_disabledksO���
�
�'��)B�)B�)D�E�#�2�2�3D�E���
�
�o�v�.�����'�*A�*A�BrLc�2�UOQ[O22UOQ[O22[OQ2o[OQ2oUO	U[
2UO	U[
2UOV2[OQ6XcUOUP2[OOQ2%fQoLQoUOV#2P!)r5r(rqr))r(�t�d�td)r(r��_d�t_d)r|r@rrr�r�r2r6rdr.r9r.)rGr5r(�valid_abiflagss&   rJ�
test_abiflags�TestSysConfig.test_abiflagsqs���	
�
�
�j�)�";�";�"=�>��
�
�j�)�";�";�"=�>��+�+�J�7���+�+�J�7�����h��,����h��,��
�
�h�)�
�7�7�d�?����X�r�*��|�|�&�&�u�-�-�1�N�4�N��
�
�h�/rLc�L�[OQ2o[O%cUO	QU2LUOQU2[O%c<[OOQ2%cUOUQ2P!P!P!)r(r�r)r�)
r@rrr~r|�assertNotInr.r9r.r/)rGr(s& rJ�test_abi_debug�TestSysConfig.test_abi_debug�sv���+�+�J�7�������M�M�#�x�(����S�(�+�
������� 7� 7�� >� >�����$�/�!?�rLc�L�[OQ2o[OQ2oUOU[2[O
%c'UO
UQ2UOQU2P!UO
UP2UOQU2P!)�
abi_threadr(r�)	r@rr�r�rr�rdr|r�)rGr�r(s&  rJ�test_abi_thread�TestSysConfig.test_abi_thread�s|���-�-�l�;�
��+�+�J�7�����j�#�.��"�"�"����Z��-��M�M�#�x�(����Z��,����S�(�+rLc��[OQ2oUO29^tt^2o[OUOQU2O2oPPP2UOWQ*UQ*Q*2UOUQ*UQ*Q*2UOUQ*UQ*2UOUQ*UQ*2P!)%fhK�9h)a�
            import sys, sysconfig

            data = {
                'prefix': sys.prefix,
                'exec_prefix': sys.exec_prefix,
                'base_prefix': sys.base_prefix,
                'base_exec_prefix': sys.base_exec_prefix,
                'config_vars': sysconfig.get_config_vars(),
            }

            import json
            print(json.dumps(data, indent=2))
        r�r7rwr8r�r�)	�textwrap�dedentr��json�loads�runr:rd�assertNotEqual)rG�scriptr��datas&   rJ�$test_makefile_overwrites_config_vars�2TestSysConfig.test_makefile_overwrites_config_vars�s������
"�

��$�Y�Y�[�[�D��:�:�d�h�h�t�V�4�;�;�<�D��	
����h���m�)<�X�)F�G�����m�,�d�=�.A�-�.P�Q�
	
���D��N�D��,?�@����D��/��6H�1I�J��[�s�1C9�9D		�D		r�z4_sysconfig-vars JSON file is only available on POSIXz;_sysconfig-vars JSON file currently isn't available on WASIz!Android and iOS change the prefixc���Q[O7c[OQ*oLM[2%c.[OO	[
[
22oL[Oo[OO	U[22o[U29^tt^2o[OU2oPPP2[2oQ.o[O2%cUQ.*o[OO[O 2UQ*6wcUQ.*o[O"[O$6wcU.Ql*o[O&2%cU.Ql*oSFD'oWO)UP2UO)UP2J)	UO+UW2P!)%fhCK9h)�_PYTHON_SYSCONFIGDATA_PATHr�rN�BINDIR�projectbase>r�r7r�r8>r�r7rNr�r8r�r�)r2rErr/r=rr!r.�_stdlib_dirr"�openr��loadrr@rRr?r7r��_installation_is_relocatedrQrd)rG�data_dir�json_data_path�f�json_config_vars�system_config_vars�ignore_keys�keys&       rJ�test_sysconfigdata_json�%TestSysConfig.test_sysconfigdata_json�sY��(�2�:�:�5��z�z�">�?�H�
�
�
��w�w�|�|�M�?�3D�E�H����H������h�0C�0E�F��
�.�
!�
!�Q�#�y�y��|��"�-�.��"�l���$�$�&�&��H�:�%�K�
�7�7�?�?�3�>�>�*�.@��.J�J��M�?�*�K��:�:����(��H�H�K��/�/�1�1��z�z�K��C�� � ��d�+��"�"�3��-��	
���+�-=�>�1"�
!�
!�s�7G!�!G2	�*G2	c�$�Q[mQ[m[O2oUOUQ*[O2UOUQ*[O2UOUQ*[O2UOUQ*[O2Q[mQ[m[O2oUOUQ*[O2UOUQ*[O2UOUQ*[O2UOUQ*[O2P!)z
prefix-AAAzexec-prefix-AAAr7r�r8r�z
prefix-BBBzexec-prefix-BBB)r.r7r8r@rrd)rGrws& rJ�*test_sysconfig_config_vars_no_prefix_cache�8TestSysConfig.test_sysconfig_config_vars_no_prefix_cache�s��!��
�+����/�/�1������X�.��
�
�;�����V�,�c�j�j�9�����]�3�S�_�_�E�����Z�0�#�/�/�B�!��
�+����/�/�1������X�.��
�
�;�����V�,�c�j�j�9�����]�3�S�_�_�E�����Z�0�#�/�/�BrL)rCrDrBr;r3r8r>r=r-r6r9r7r<r?r0r'r:)?�__name__�
__module__�__qualname__�__firstlineno__r,rRr4r5rNrfrnryr}r�r�r�r�r�r��unittest�skipIfrrr.r9r�r�rr
r�rrrrrrr@rr"r7�
skipUnlessrJrYr^rcrmrsrxr{r�r�r�r�r�r�r2r6rr�r��__static_attributes__�__classdictcell__�
__classcell__)rI�
__classdict__s@@rJr$r$)s�����0�@.�6-�� �C�)��>�9�,F�4^�*�8�
KE�^�_�_�W�L�M�
�_�_�_����~�%`�a�c�<�c�N�<�D����E���E�
 6�D@��_�_�S�\�\�W�,�.I�J�)�K�)��_�_��0�0�2�2�4Q�R�;�S�;��_�_��0�0�2�2�4Q�R�
�_�_�S�\�\�W�,�.I�J�
�_�_�Y�-�-�.>�?�1�D�2�4�-�4�K�S�-�
N�&�������1�3Q�R���(5��S�(5�T�_�_�W�L�M�
�_�_�_����~�%N�O�Q�3�Q�N�3�0*��_�_�Y�-�-�l�;�t�C�8�:�
�_�_��0�0�2�2�4Q�R�K�S�:�K��������0�2G�H�;�I�;��_�_�Y�-�-�.I�J�d�R�G�I�L�I�L��������2�4K�L�?�M�?��������1�3G�H�2�I�2�5�C�0�*0�	,���K��K�@�_�_�R�W�W��'�)_�`�
�_�_�W�[�\�
�_�_�Z�2�2�?�4W�X�"?�Y�]�a�"?�HC�CrLr$c�`�\sQsQsn\O
\OOQ2Q2\O
\	Q2\O
\
\OQ02Q222sQsQs
Q	sQ
sQsUsP!)�
MakefileTests�r)zTest is not Windows compatibler�rLc��[O2oUO[OOU2U2P!rV)r@rSr�r2r/r])rG�makefiles& rJ�test_get_makefile_filename�(MakefileTests.test_get_makefile_filename�s-���2�2�4����������x�0�(�;rLc�0�UO[[2[[Q29^tt^2o[	QUQ5[	QUQ5[	QUQ5[	QUQ5[	QUQ5[	QUQ5[	QUQ5[	Q	UQ5[	Q
UQ5[	QUQ5[	QUQ5PPP2[[2oUO
UQ
QQQQ]*QQQQQQQ]*QQQQQQQQ-2P!)%fhKI9h) �wz
var1=a$(VAR2)��filez
VAR2=b$(var3)zvar3=42zvar4=$/invalidzvar5=dollar$$5zAvar6=${var7}/lib/python3.5/config-$(VAR2)$(var5)-x86_64-linux-gnuzvar7=${var3}z
var8=$$(var3)zvar9=$(var10)(var3)zvar10=$$zvar11=$${ORIGIN}${var5}�var1�ab42�VAR2�b42�var3�var4z	$/invalid�var5zdollar$5�var6z442/lib/python3.5/config-b42dollar$5-x86_64-linux-gnu�var7�var8z$(var3)�var9�var10�$�var11z${ORIGIN}dollar$5��
addCleanupr
rr��printr rd�rGr�r�s&  rJ�test_parse_makefile�!MakefileTests.test_parse_makefiles��������'�
�&�#�
�
�(��/��1��/��1��)�(�+��"��2��"��2��&�,4�
6��.�x�0��/��1��'�h�7��*�8�,��+�(�;���v�&�������F��E��B��K��J��J��B��I��I��S��(� 
�	��
�s�BD�D	�D	c	�@�UO[[2[[Q29^tt^2o[	QUQ5[	QUQ5[	QUQ5PPP2[[2oUO
UQQQQQ	Q
-2P!)%fhK99h)r�zvar1=var1=$(var1)r�zvar2=var3=$(var3)zvar3=var2=$(var2)r�zvar1=�var2z
var3=var2=r�zvar2=r�r�s&  rJ�_test_parse_makefile_recursion�,MakefileTests._test_parse_makefile_recursion%s~�������'�
�&�#�
�
�(��%�H�5��%�H�5��%�H�5���v�&�������G��L��G� 
�	��
�s�(B
�
B	�B	c��UO[[2[[Q29^tt^2o[	QUQ5[	QUQ5[	QUQ5[	QUQ5[	QUQ5PPP2[29^tt^2oUO
2[[2oPPP2UOWQQQ	QQ
QQQQ
QQQQP-2P!)%fhKl9h)%fhKE9h)r�zvar1=$(CFLAGS)r�zPY_CFLAGS=-Wall $(CPPFLAGS)zPY_LDFLAGS=-lmzvar2=$(LDFLAGS)zvar3=$(CPPFLAGS)r�z-Wallr��	PY_CFLAGSrz-lm�
PY_LDFLAGSr�r�)	r�r
rr�r�rrOr rd)rGr�r<r�s&   rJ� test_parse_makefile_renamed_vars�.MakefileTests.test_parse_makefile_renamed_vars2s��������'�
�&�#�
�
�(��"��2��/�h�?��"��2��#�(�3��$�8�4��!�
"�
"�c��I�I�K�"�6�*�D�#�	
�����G��g����u��%��E��B� 
�	��
��#�
"�s$�AC� C-�C*	�#C*	�-C=	�6C=	c�(�UO[[2[[Q29^tt^2o[	QUQ5[	QUQ5[	QUQ5[	QUQ5[	QUQ5[	QUQ5[	QUQ5[	Q	UQ5PPP2[[2oUO
UQ
QQQ
QQQQQQQQQQQQ-2[[P
Q5oUO
UQ
QQQQQ-2P!)%fhKl9h)r�z
var1=valuer�zvar2=$/zvar3=$/$(var1)zvar4=var5=$(var5)zvar5=$/$(var1)zvar6=$(var1)$/zvar7=var8=$(var8)zvar8=$(var1)$/r�rSr�z$/r�z$/valuer�zvar5=$/valuer�r�zvalue$/r�zvar8=value$/r�)�keep_unresolvedzvar5=zvar8=r�r�s&  rJ�#test_parse_makefile_keep_unresolved�1MakefileTests.test_parse_makefile_keep_unresolvedGs��������'�
�&�#�
�
�(��,�X�.��)�(�+��"��2��%�H�5��"��2��"��2��%�H�5��"��2���v�&�������G��D��I��N��I��I��N��I�	 
�		��v�u�=�������G��G��G� 
�	�+�
�s�A)D�D	�
D	rt)r�r�r�r�r�r�r.r9r.rrr�r�r�r�r�r�r��r�s@rJr�r��s�����
�_�_�S�\�\�,�,�U�3�5�7�
�_�_�W�L�M�
�_�_�_����~�%N�O�Q�<�Q�N�7�
<��<��*�rLr�c�>`�\sQsQsnP\P1QksQsQsQsUs	P!)�DeprecationTests�ec��[OU6�cUOV4Q5!UO[UQ5!))�msg)r.r-�assertRaises�assertWarns�DeprecationWarning)rG�removal_version�deprecation_msg�error�	error_msgs&&&&&rJ�
deprecated�DeprecationTests.deprecatedfs;������.��$�$�U�$�:�:��#�#�$6�O�#�L�LrLc��UOQQ[QQ59^tt^2[OP-2PPP2P!)%fhP!9h)�z:module 'sysconfig' has no attribute 'expand_makefile_vars'�r�r�r�r�)r��)z{sysconfig.expand_makefile_vars is deprecated and will be removed in Python 3.16. Use sysconfig.get_paths(vars=...) instead.)r��AttributeErrorr@�expand_makefile_varsrZs&rJ�test_expand_makefile_vars�*DeprecationTests.test_expand_makefile_varslsO��
�_�_�#��!�R��
�
�
�*�*�2�r�2�
�
�
�
�s�A�A	�A	c��UOQQ[QQ59^tt^2[OQ2PPP2P!)%fhP!9h)r�zThe check_home argument of sysconfig.is_python_build is deprecated and its value is ignored. It will be removed in Python 3.15.z?is_python_build() takes 0 positional arguments but 1 were givenr��foo)r��)r��	TypeErrorr@rrZs&rJ�test_is_python_build_check_home�0DeprecationTests.test_is_python_build_check_homexsM��
�_�_�#�5��W��	
�	
�
�%�%�e�,�	
�	
�	
�	
�s�A�A	�
A	rt)
r�r�r�r��	Exceptionr�rr	r�r�r�s@rJr�r�es"����:>�i�[_�M�
3�-�-rLr��__main__)<r9rhr�r.r2r=r`r�r��
unittest.mockrr�testr�test.supportrrrrr	r
�test.support.import_helperr�test.support.os_helperrr
rrr�test.support.venvrr@rrrrrrrrrrrrr�sysconfig.__main__rr r!r"rr��_HAS_USER_BASEr��TestCaser$r�r�r��mainrtrLrJ�<module>rs����	��
�	��
��������5�E�E�5��7�7�7�7�
\�[����(�(�
�PC�H�%�%�'>�PC�ff�H�%�%�f�R-�x�(�(�-�B�z���M�M�O�rL

Youez - 2016 - github.com/yon3zu
LinuXploit