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_compileall.cpython-315.pyc
R
>lqj��c	��]PHs]PHs]PHs]PHs]PHs]PHs]PHs]PH s]PH$s	]PH(s
]PH,s]PH0s
]PH8s]PH<s]QH<GsGs]QHJGs]QHVGs]QH^Gs\2P	s]QH4Gs]QHtGs]QHtGs]QH�G!s!]Q	H�G"s"]Q
H�G$s$\
OJOLe\ONQ2gQs(Q
s)Qs*QQ2s+QQ\+\OX\"P	Q5s-QQ\+\OX\"P
Q5s.\O^\O`Q2QQ\OX22s1QQ2s2QQ\2\OX\"P	Q5s3QQ\2\OX\"P
Q5s4\OjQQ 22s6Q!Q"\6\OX\"P	Q5s7Q#Q$\6\OX\"P
Q5s8\9Q%6Xc\Ot2P!P!\\1cP
sCKyh9h)&�)�mock�
skipUnless)�_cleanup_tests)�ProcessPoolExecutor)�_check_system_limits)�support)�	os_helper)�
script_helper)�without_source_date_epoch)�SourceDateEpochTestMeta)�FakePathz1requires sys.implementation.cache_tag is not Nonec�X�U%fPo[OOVQ5!)���optimization)�	importlib�util�cache_from_source��script�opts&&�)C:\Python315\\Lib\test\test_compileall.py�get_pycr(s"������>�>�+�+�F�+�E�E�c�F�QTt,tFDo[V2MJ	to!ttoh)r�r��)rrs& r�get_pycsr/s��,5�6�I�S�G�F� �I�6�6��6s�c��[OU2Oo[OU2OoV#6H!)z8Returns True if two files have the same inode (hardlink))�os�stat�st_ino)�	filename1�	filename2�inode1�inode2s&&  r�is_hardlinkr'3s3��
�W�W�Y�
�
&�
&�F�
�W�W�Y�
�
&�
&�F���rc�`�\sQs]:snQsQsQsQsQsQs	Qs
QsQ	sQ
s
QsQsQ
sQsQsQsQsQsQsQs\\Q2\O6Q2Q22sQs\\Q2\O6Q2Q22s\\Q2\O6Q2\O6Q2Q222s\\Q2\O6QPQ5\O6Q2Q222s Qs!QP	-Q ks"Q!s#\\Q2Q"2s$Q#s%\\Q2Q$2s&Q%s'Q&s(Q's)Q(s*Q)s+Q*s,\-O\Q+2s/Q,s0Us1P!)-�CompileallTestsBasec�H�[O2UmUO[O
UO2[OOUOQ2Um	[OOUO2Um
[UOQQQ59^tt^2oUOQ2PPP2[OOUOQ2Um[OOUO 2Um[O$UOUO 2[OOUOQ2Um[O(UO&2[OOUO&Q2Um[O$UOUO*2P!)%fhCKD9h)�_test.py�w�utf-8��encodingzx = 123
z	_test2.py�_subdirz	_test3.py)�tempfile�mkdtemp�	directory�
addCleanup�shutil�rmtreer �path�join�source_pathrrr�bc_path�open�write�source_path2�bc_path2�copyfile�subdirectory�mkdir�source_path3��self�files& r�setUp�CompileallTestsBase.setUp<sH��!�)�)�+�������
�
�t�~�~�6��7�7�<�<����
�C��� �~�~�7�7��8H�8H�I���
�$�"�"�C�'�
:�
:�d��J�J�{�#�;��G�G�L�L�����E���!���8�8��9J�9J�K��
�����(�(�$�*;�*;�<��G�G�L�L�����C���
����"�"�#��G�G�L�L��):�):�K�H�������(�(�$�*;�*;�<�;�
:�
:�s�H�H!	�H!	c��[OOUOQ2Um[UOQQQ59^tt^2oUO
Q2PPP2P!)%fhP!9h)z_test_bad.pyr,r-r.zx (
)r r7r8r3�bad_source_pathr;r<rCs& r�add_bad_source_file�'CompileallTestsBase.add_bad_source_fileLsO��!�w�w�|�|�D�N�N�N�K���
�$�&�&��g�
>�
>�$��J�J�w��?�
>�
>�
>�s�A-�-A>	�6A>	c�x�[UOQ29^tt^2oUO]2oPPP2[[O
UO2O2o[OQ[OO]UQ*2oWU1!)%fhK9h)�rb�<4sLL���)
r;r:�read�intr r!r9�st_mtime�struct�packrr�MAGIC_NUMBER)rDrE�data�mtime�compares&    r�timestamp_metadata�&CompileallTestsBase.timestamp_metadataQs��
�$�,�,��
%�
%���9�9�R�=�D�&��B�G�G�D�,�,�-�6�6�7���+�+�g�y�~�~�'B�'B�A�#�k�1�3���W�}��&�
%�s�B)�)B9	�2B9	c��[OUOQ2[O[O229^tt^2UO[OUO22PPP2P![[1cSOQ2K�h9h)%fhP!9h)rz0filesystem doesn't support timestamps near 2**32)rOrO�
r �utimer9�
OverflowError�OSError�skipTest�
contextlib�redirect_stdout�io�StringIO�
assertTrue�
compileall�compile_file�rDs&r� test_year_2038_mtime_compilation�4CompileallTestsBase.test_year_2038_mtime_compilationYs���	N��H�H�T�%�%�'=�>��
'�
'����
�
6�
6��O�O�J�3�3�D�4D�4D�E�F�7�
6���w�'�	N��M�M�L�M�	N��
6�
6�
6��)�!B�0B7�B4�B4�3B4�7C	�C	c��[OUOQ2[O[O229^tt^2UO[OUO22PPP2P![[1cSOQ2K�h9h)%fhP!9h)rz+filesystem doesn't support large timestamps)� rmr\rhs&r�test_larger_than_32_bit_times�1CompileallTestsBase.test_larger_than_32_bit_timescs���	I��H�H�T�%�%�~�6��
'�
'����
�
6�
6��O�O�J�3�3�D�4D�4D�E�F�7�
6���w�'�	I��M�M�G�H�	I��
6�
6�
6�rkc�"�[OOQ2%c[OQ2g[
OUO2UOUO2[UOQ29^tt^2oUO2[U2PoPPP2[UOQ29^tt^2oUOU2UOW2PPP2UOUO2[ O"UO$P
P	Q5UO&UO2P!)%fhK�9h)%fhK�9h)zGCheck that compileall recreates bytecode when the new metadata is
used.�SOURCE_DATE_EPOCHzSOURCE_DATE_EPOCH is setrM�wb��force�quiet)r �environ�get�unittest�SkipTest�
py_compile�compiler9�assertEqualrYr;r:rP�lenr<�assertNotEqualrf�compile_dirr3re)rD�metadatarE�bcs&&  r�recreation_check�$CompileallTestsBase.recreation_checkms���:�:�>�>�-�.�.��#�#�$>�?�?����4�+�+�,����$�1�1�3�4�
�$�,�,��
%�
%������S��]�^�,�B�&�
�$�,�,��
%�
%���J�J�x� ��J�J�r�N�&�	
���T�4�4�6�7����t�~�~�U�$�G�����0�0�2�3�&�
%��
%�
%�s$�E+�#E>�+E;	�4E;	�>F	�F	c��UO[OQ[OO
]]22P!)rN)r�rSrTrrrUrhs&r�
test_mtime�CompileallTestsBase.test_mtime}s.�����f�k�k�'�9�>�>�3N�3N�*+�Q�0�	1rc�*�UOQ2P!)s)r�rhs&r�test_magic_number�%CompileallTestsBase.test_magic_number�s�����k�*rc��UOUO1FDo[OU2J	UO	[
OUOP
P	Q52SO	[OOUO29%c/[OOUO2%(2[OUO2UO	[
OUOP
P	Q52SO	[OOUO29%c*[OOUO22[OUO2[OUO2UO2UO[
OUOP
]Q52UO[
OUOP
]Q52P!CJ59h)Frs)r:r>r �unlinkrerfrgr9r7�isfilerr3rJ�assertFalserI)rD�fns& r�test_compile_files�&CompileallTestsBase.test_compile_files�s����<�<����/�B�
��	�	�"�
�0�
	
���
�/�/��0@�0@�6;�4�I�	J���������t�|�|�4�:�:��G�G�N�N�4�=�=�9�9�	;�
�	�	�$�,�,�����
�.�.�t�~�~�U�59�;�	<���������t�|�|�4�6�6������t�}�}�5�	7�
�	�	�$�,�,��
�	�	�$�-�-� �� � �"�����0�0��1E�1E�7<�A�G�	H�����/�/����6;�1�F�	G��#
��s�I
�
Ic	�
�UO[OOUO22[
O29^tt^2oUO[O[UO222PPP2UOWO2Q2UO[OOUO22P!)%fhKj9h)Nz&Compiling ([^WindowsPath|PosixPath].*))r�r r7r�r:r�captured_stdoutrerfrgrr9�assertRegex�getvalue)rD�stdouts& r�test_compile_file_pathlike�.CompileallTestsBase.test_compile_file_pathlike�s��������������5�6�
�
$�
$�
&�
&�&��O�O�J�3�3�H�T�=M�=M�4N�O�P�'�������*�,U�V���������t�|�|�4�5�'�
&�s�9C2�2D	�;D	c�p�UO[OOUO22UO[O[UO2[Q2]Q52UO[OOUO22P!)�	ddir_path)�ddirru�
r�r r7r�r:rerfrgrr9rhs&r�test_compile_file_pathlike_ddir�3CompileallTestsBase.test_compile_file_pathlike_ddir�sq�������������5�6����
�/�/���9I�9I�0J�5=�k�5J�67�9�	:�	
��������t�|�|�4�5rc�p�UO[OOUO22UO[O[UO2[Q2]Q52UO[OOUO22P!��
stripdir_path)�stripdirrur�rhs&r�#test_compile_file_pathlike_stripdir�7CompileallTestsBase.test_compile_file_pathlike_stripdir�sq�������������5�6����
�/�/���9I�9I�0J�9A�/�9R�67�9�	:�	
��������t�|�|�4�5rc�p�UO[OOUO22UO[O[UO2[Q2]Q52UO[OOUO22P!��prependdir_path)�
prependdirrur�rhs&r�%test_compile_file_pathlike_prependdir�9CompileallTestsBase.test_compile_file_pathlike_prependdir�sr�������������5�6����
�/�/���9I�9I�0J�;C�DU�;V�67�9�	:�	
��������t�|�|�4�5rc
�*�[OOOUO,Q59^tt^2UO[O]Q52PPP2[OOOUO,Q59^tt^2UO2UO[OP
P	]Q52PPP2P!)%fhK�9h)%fhP!9h)�r7�ru)�skip_curdirrtru)
�test�test_importlibr�import_stater3rerf�compile_pathrJr�rhs&r�test_compile_path�%CompileallTestsBase.test_compile_path�s���
�
 �
 �
%�
%�
2�
2����8H�
2�
I�
I��O�O�J�3�3�!�<�=�J��
 �
 �
%�
%�
2�
2����8H�
2�
I�
I��$�$�&����Z�4�4��;?�q�J�
K�J�
I�J�
I��J�
I�
I�s#�'C.�+9D�.C>	�7C>	�D	�
D	c���[OOUOQ2o[OOUQ2o[OU2[UQ29^tt^2PPP2[OU2UO[OO[OOUQ222P!)%fhKt9h)rVrErr�__pycache__)
r r7r8r3rAr;rfrgr��exists)rD�data_dir�	data_files&  r�test_no_pycache_in_non_package�2CompileallTestsBase.test_no_pycache_in_non_package�s����7�7�<�<�����7���G�G�L�L��6�2�	�
�����
�)�T�
"�
"��#����	�*��������������X�}�(M�N�O�#�
"�s�6C$�$C4	�-C4	c�"�UO2[O[O229^tt^2UO[OUO22PPP2P!)%fhP!9h�N)	rJrarbrcrdr�rfrgrIrhs&r�#test_compile_file_encoding_fallback�7CompileallTestsBase.test_compile_file_encoding_fallback�sS��� � �"�
�
'�
'����
�
6�
6����Z�4�4�T�5I�5I�J�K�7�
6�
6�
6�s�0A=�=B	�B	c�l�Qvq[OUOP	UQ5[OOUOUQ5oUO[OOU22[OOUOUQ5oUO[OOU22[OOUOUQ5oUO[OOU22P!)T�ru�optimizer)rr)
rfrr3rrrr9rer r7r�r=rB)rDr�r�cached�cached2�cached3s&     r�
test_optimize�!CompileallTestsBase.test_optimize�s����
�����t�~�~�T�H�M����1�1�$�2B�2B�?B�2�D����������v�.�/��.�.�2�2�4�3D�3D�@C�3�E����������w�/�0��.�.�2�2�4�3D�3D�@C�3�E����������w�/�0rc��UO[OOUO22[
O29^tt^2o[O[UO22PPP2WO2O2]*oUOUQ2UO[OOUO22P!)%fhK�9h)Nz$Listing ([^WindowsPath|PosixPath].*))r�r r7r�r:rr�rfrrr3r��
splitlinesr�re)rDr��lines&  r�test_compile_dir_pathlike�-CompileallTestsBase.test_compile_dir_pathlike�s��������������5�6�
�
$�
$�
&�
&�&��"�"�8�D�N�N�#;�<�'���� �+�+�-�a�0������F�G���������t�|�|�4�5�	'�
&�s�*C:�:D
	�D
	c�p�UO[OOUO22UO[O[UO2[Q2]Q52UO[OOUO22P!r��
r�r r7r�r:rerfrrr3rhs&r�"test_compile_dir_pathlike_stripdir�6CompileallTestsBase.test_compile_dir_pathlike_stripdir�so�������������5�6����
�.�.�x����/G�8@��8Q�56�8�	9�	
��������t�|�|�4�5rc�p�UO[OOUO22UO[O[UO2[Q2]Q52UO[OOUO22P!r�r�rhs&r�$test_compile_dir_pathlike_prependdir�8CompileallTestsBase.test_compile_dir_pathlike_prependdir�sp�������������5�6����
�.�.�x����/G�:B�CT�:U�56�8�	9�	
��������t�|�|�4�5r�requires multiprocessingz&concurrent.futures.ProcessPoolExecutorc��[OUOP	]Q5UOUO2P!�T�ru�workers�rfrr3re�called�rD�	pool_mocks&&r�test_compile_pool_called�,CompileallTestsBase.test_compile_pool_called�s,��	���t�~�~�T�1�E����	�(�(�)rc���UO[Q29^tt^2[OUOPQ5PPP2P!)%fhP!9h)z%workers must be greater or equal to 0)r�)�assertRaisesRegex�
ValueErrorrfrr3rhs&r�!test_compile_workers_non_positive�5CompileallTestsBase.test_compile_workers_non_positivesI��
�
#�
#�J�$K�M�M��"�"�4�>�>�2�>�M�M�M�M�s�#A
�
A	�A	c��[OUOP	]Q5UOUO]*Q*P2P!)Tr��max_workers)rfrr3r|�	call_argsr�s&&r�test_compile_workers_cpu_count�2CompileallTestsBase.test_compile_workers_cpu_count	s:��	���t�~�~�T�1�E�����,�,�Q�/�
�>��Erzcompileall.compile_filec��[OUOP	Q5UOUO2UOUO2P!)Tr�)rfrr3r�r�re)rD�compile_file_mockr�s&&&r�test_compile_one_worker�+CompileallTestsBase.test_compile_one_workers?��	���t�~�~�T�:�����)�)�*����)�0�0�1r��newc��[OUOP	]Q5UOUO2P!r�r�)rDr�s&&r�$test_compile_missing_multiprocessing�8CompileallTestsBase.test_compile_missing_multiprocessings-��	���t�~�~�T�1�E����)�0�0�1rc���]oUOo[]U]*2FD}o[OO	UQU02o[OO	UQ2o[O
U2[OUOU2J	[OOW2o[OUOP	U]*
Q5UO[OOU22[OUOP	UQ5UO![OOU22P!)��dir_z	script.py)ru�	maxlevels)r3�ranger r7r8rAr5r?r9rrrrfrr�r�re)rD�depthr7�i�source�pyc_filenames&     r�test_compile_dir_maxlevels�.CompileallTestsBase.test_compile_dir_maxlevelss������~�~���q�%�!�)�$�A��7�7�<�<���Q�C�j�1�D��W�W�\�\�$��4�F��H�H�T�N��O�O�D�,�,�f�5�	%�
!�~�~�7�7��?�����t�~�~�T�U�Q�Y�O����������5�6����t�~�~�T�U�K���������|�4�5r�parallelc	��QQ,oUOo,oSFDwo[OOVF2o[OU2[
OUQP2UO[
OUQQ22Jy	U%cUO[2[OUOP	SU%c]L]Q5UOU2SFCDoUOVpO2[OO!U2oU[#UO[O$*2Po	[
O&U2vq�[OOV2o[(O*OO-U2o
UO/U
O0U2UO3QUQ0[O4U22CJ	P!)z@Recursive compile_dir ddir must contain package paths; bpo39769.r��foo�__init__�modzdef fn(): 1/0
fn()
)rur�r��")r3r r7r8rAr	�make_script�appendr4�multiprocessing_cleanup_testsrfrre�assertStartsWithrrrr}�sep�assert_python_failurer�r��get_code_from_pycr|�co_filename�assertIn�fsdecode)rDr�r��fullpathr7�mods�subdirr�modcode�modpath�_�err�expected_in�mod_code_objs&$$           r�_test_ddir_only�#CompileallTestsBase._test_ddir_only/s{���E�?���~�~�����F��7�7�<�<��-�D��H�H�T�N��%�%�d�J��;��K�K�
�1�1�$��2I�K�
L�	���O�O�9�:�������d��%��1�	.�	
������C��!�!�#�~�~�6��n�n�6�6�s�;�G��#�d�n�n�R�V�V�3�4�5�6�G�%�;�;�G�D�I�A�q��'�'�,�,�t�5�K��.�.�3�3�E�E�g�N�L����\�5�5�{�C��M�M�A�k�]�!�,�b�k�k�#�.>�?�rc�*�UOQP
Q5!�z=Recursive compile_dir ddir= contains package paths; bpo39769.z
<a prefix>�r�r��rrhs&r�test_ddir_only_one_worker�-CompileallTestsBase.test_ddir_only_one_workerLs���#�#���#�F�Frc�*�UOQP	Q5!rrrhs&r�test_ddir_multiple_workers�.CompileallTestsBase.test_ddir_multiple_workersPs���#�#���#�E�Erc�*�UOPP
Q5!�z?Recursive compile_dir ddir='' contains package paths; bpo39769.rrrhs&r�test_ddir_empty_only_one_worker�3CompileallTestsBase.test_ddir_empty_only_one_workerUs���#�#��e�#�<�<rc�*�UOPP	Q5!r!rrhs&r� test_ddir_empty_multiple_workers�4CompileallTestsBase.test_ddir_empty_multiple_workersYs���#�#��d�#�;�;rc���,QNo[OOUO,UN3o[OU2[
OUQQ2o[OOU2o[OOUO,UQ*N3o[OUP	UQ5[
OU2vqgo[OOUQ*o	UOU	[U[O 2Q52UO#U[U[O 2Q52P!)r��1 / 0�NrN�rur��rNNr.�r��build�realr7�r r7r8r3�makedirsr	rrrrrfrrr
�str�sys�getdefaultencoding�assertNotIn)
rDrr7rr�r��rc�outrrs
&         r�test_strip_only�#CompileallTestsBase.test_strip_only^s���4���w�w�|�|�D�N�N�6�X�6��
���D���*�*�4���A��
�^�^�
-�
-�f�
5���7�7�<�<����>��"��>�����t�4�(�C�$�:�:�2�>�����g�g�l�l�H�R�L�1���
�
����c�4�4�6�7�	
�	
������c�4�4�6�7�	
rc��,QNo[OOUO,UN3o[OU2[
OUQQ2o[OOU2o[OOUO,UQ*Q,*N3o[O29^tt^2o[OUP	UQ5PPP2UOQWO22[
O U2vqvo[OOUO,UQ*N3o	UOU[#U[$O&2Q52UO)U	[#U[$O&2Q52UO)U[#U[$O&2Q52P!)%fhCK9h)	r�r(r)�faker*znot a valid prefixr+r.r,)r r7r8r3r0r	rrrrrr�rfrr
r�rr1r2r3r4)
rDrr7rr�r�r6r5r�expected_not_ins
&         r�test_strip_only_invalid�+CompileallTestsBase.test_strip_only_invalidqsf��4���w�w�|�|�D�N�N�6�X�6��
���D���*�*�4���A��
�^�^�
-�
-�f�
5���7�7�<�<����K�(�2�,�&��2I�K��
�
$�
$�
&�
&�#��"�"�4�t�h�G�'��
�
�*�C�L�L�N�;�$�:�:�2�>�����'�'�,�,�t�~�~�E����E���
�
����c�4�4�6�7�	
�	
������c�4�4�6�7�	
�	
������c�4�4�6�7�	
�'�
&�
&�s�G:�:H	�H	c�&�,QNo[OOUO,UN3o[OU2[
OUQQ2o[OOU2oQo[OUP	UQ5[
OU2vqgo[OOVPO,UN3o	UOU	[U[O 2Q52P!)r�r(�/foo)rur�r.r,)r r7r8r3r0r	rrrrrfrrr
r1r2r3)
rDrr7rr�r�r5r6rrs
&         r�test_prepend_only�%CompileallTestsBase.test_prepend_only�s���4���w�w�|�|�D�N�N�6�X�6��
���D���*�*�4���A��
�^�^�
-�
-�f�
5���
����t�4�J�G�$�:�:�2�>�����g�g�l�l�:�~�~�I��I���
�
����c�4�4�6�7�	
rc���,QNo[OOUO,UN3o[OU2[
OUQQ2o[OOU2o[OOUO,UQ*N3oQo[OUP	VVQ5[
OU2vqxo	[OOU,UQ*N3o
UOU
[U	[O 2Q52UO#U[U	[O 2Q52P!)r�r(r)r?)rur�r�r+r.r,r/�rDrr7rr�r�r�r5r6rrs&          r�test_strip_and_prepend�*CompileallTestsBase.test_strip_and_prepend�s��4���w�w�|�|�D�N�N�6�X�6��
���D���*�*�4���A��
�^�^�
-�
-�f�
5���7�7�<�<����>��"��>���
����t�4�(0�	I�$�:�:�2�>�����g�g�l�l�:�=����=���
�
����c�4�4�6�7�	
�	
������c�4�4�6�7�	
rc
�p�,QNo[OOUO,UN3o[OU2[
OUQQ2UO[29^tt^2[OUP	QQQQ5PPP2P!)%fhP!9h)r�r(z/barr?)rur�r�r�)r�r-r.r7r�)r r7r8r3r0r	r�assertRaisesr�rfr)rDrr7s&  r�test_strip_prepend_and_ddir�/CompileallTestsBase.test_strip_prepend_and_ddir�sz��<���w�w�|�|�D�N�N�6�X�6��
���D���!�!�$���8�
�
�
�z�
*�
*��"�"�4�t�&�,2�v�
G�+�
*�
*�
*�s�>B$�$B5	�-B5	c
��[OUOQQ2o,oQFD3oUO[O
O
UUQ52J5	]],]],]],,QN,oSFDwo[OUP	UQ5SFDToUO[OOV#*22[OV#*2JV	Jy	P![cJlh9h)�test_optimization�a = 0rr��rrrr�r)r	rr3rrrrrfrgrer r7r�r��	Exception)rDrr��	opt_level�test_combinations�opt_combinations&     r�!test_multiple_optimization_levels�5CompileallTestsBase.test_multiple_optimization_levels�s����*�*�4�>�>�+>�+2�4����$�I��I�I�i�n�n�6�6�v�DM�7�O�
P�%� ��V�a��V�a��V�Y�?��0�O��#�#�F�$�-<�
>�,�	���������r�}� =�>���I�I�b�m�,�-� 1��!����s�C.�.	C=�8C=�<C=c�2�[OOUOQQQ2o[OOUOQQQ2o[OOUOQQQ2o[OU2[OU2[OU2[
OUQQ2o[
OUQQ2o[OOUQ2o[OOUQ	2o[OVF2[OVW2[OOU2o[OOU2o	[OUP	UQ
5UOOU22UO[OOU	22P!)r��dir�allowed�symlinks�
prohibited�test_allowedrL�test_prohibited�test_allowed.py�test_prohibited.py)ru�
limit_sl_dest)r r7r8r3r0r	r�symlinkrrrrfrrer�r��
rD�allowed_path�
symlinks_path�prohibited_path�allowed_script�prohibited_script�allowed_symlink�prohibited_symlink�
allowed_bc�
prohibited_bcs
&         r�test_ignore_symlink_destination�3CompileallTestsBase.test_ignore_symlink_destination�s]���w�w�|�|�D�N�N�F�E�9�M�������T�^�^�V�U�J�O�
��'�'�,�,�t�~�~�v�u�l�S��
���L�!�
���M�"�
���O�$�'�2�2�<��QX�Y��)�5�5�o�GX�Za�b���'�'�,�,�}�6G�H���W�W�\�\�-�9M�N��
�
�
�>�3�
�
�
�$�9��^�^�5�5�o�F�
�!���8�8�9K�L�
����}�D��U���������z�2�3���������
�6�7r)rIr:r>r3r9r=rBr@)2�__name__�
__module__�__qualname__�__firstlineno__rFrJrYrirnr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�_have_multiprocessingr�patchr�r�r�r�r�r�rrrr"r%r7r<r@rDrHrRr�skip_unless_symlinkri�__static_attributes__�__classdictcell__��
__classdict__s@rr)r):s�����=�  �
�G�G�4� 1�
+�G�26�6�6�6�K�
P�L�
1�6�6�6��%�'A�B�	�Z�Z�8�9�*�:�C�*�?�
�%�'A�B�	�Z�Z�8�9�F�:�C�F��%�'A�B�	�Z�Z�8�9�	�Z�Z�)�*�2�+�:�C�2�
�%�'A�B�	�Z�Z�8�d�C�	�Z�Z�)�*�2�+�D�C�2�6�"@��@�:G��%�'A�B�F�C�F�=��%�'A�B�<�C�<�
�&
�2

�
�*G��&�"�"�8�#�8rr)c��\sQsQsQsP!)�CompileallTestsWithSourceEpoch����rkrlrmrnrrryrrrwrw����	rrw)�	metaclass�source_date_epochc��\sQsQsQsP!)�!CompileallTestsWithoutSourceEpoch��ryrzryrrrr�r{rrz tempdir is not encodable on WASIc�8`�\sQsQsnQsQsQsQsQsUs	P!)�EncodingTest��zPIssue 6716: compileall should escape source code when printing errors
to stdout.c�6�[O2Um[OOUOQ2Um[UOQQQ59^tt^2oUOQ2PPP2P!)%fhP!9h)r+r,r-r.ub"€")	r1r2r3r r7r8r9r;r<rCs& rrF�EncodingTest.setUp�sa��!�)�)�+����7�7�<�<����
�C���
�$�"�"�C�'�
:�
:�d�
�J�J�{�#�;�
:�
:�
:�s�+B�B	�B	c�H�[OUO2P!r�)r5r6r3rhs&r�tearDown�EncodingTest.tearDowns���
�
�d�n�n�%rc��[O[O2QQ5o[OU29^tt^2[
OUO2oPPP2UOW2UO]2UO2oUOQU2UOQU2P!)%fhKh9h)�asciir.z<SyntaxError: bytes can only contain ASCII literal characters�UnicodeEncodeError)
rc�
TextIOWrapper�BytesIOrarbrfrr3r��seekrPr
r4)rD�buffer�compiled�ress&   r�
test_error�EncodingTest.test_errors����!�!�"�*�*�,��A��
�
'�
'��
/�
/�!�-�-�d�n�n�=�H�0�����"����A���k�k�m���
�
�J��	
�	
���-�s�3�0�
/�s�!C�C	�C	)r3r9)
rkrlrmrn�__doc__rFr�r�rrrsrts@rr�r��s�����$�&�4�4rr�c�`�\sQsQsnQsQs\OQ2s\OQ2s	Qs
QsQsQ	s
Q
sQs\\O$Q2Q
22s\O$Q2Q2sQQ,1QQQ,1QQQ,11FDvsss\\1Qks\\2Q\*$J!	QsQs\Q2sQsQs\O@Q2s!Qs"Q s#Q!s$Q"s%Q#s&\ONQ$2s(Q%s)Q&s*Q's+Q(s,Q)s-Q*s.Q+s/\0\1Q,2Q-2s2\3OhQ.2Q/2s5Q0s6Q1s7\O@Q22s8Q3s9Q4s:Q5s;Us<P!)6�CommandLineTestsBase�zTest compileall's CLI.c�(�[O2UmUO[O
UO2[OOUOQ2Um	[OUO2[OOUOQ2Um[OUOQP2Um[OUOQP2UmP!)r�r�r��bar)r1r2r3r4rr6r r7r8�pkgdirrA�pkgdir_cachedirr	r�initfn�barfnrhs&rrF�CommandLineTestsBase.setUps���!�)�)�+������	�(�(�$�.�.�9��g�g�l�l�4�>�>�5�9���
�������!�w�w�|�|�D�K�K��G���#�/�/����Z��L���"�.�.�t�{�{�E�2�F��
rc#� �[Oo[OO	UO
Q2oU[mQUO
QU-w�U[mP!S[mh9h3h)z&Adjust and restore sys.pycache_prefix.�
__testcache__�
PYTHONPATH�PYTHONPYCACHEPREFIX)r2�pycache_prefixr r7r8r3)rD�
old_prefix�
new_prefixs&  r�temporary_pycache_prefix�-CommandLineTestsBase.temporary_pycache_prefixsa����'�'�
��W�W�\�\�$�.�.�/�B�
�	,�!+�C���d�n�n�%�z��
�
",�C����C��s�<A:�A*�
A:�*
A7�7A:c#� �[OoP[m[O29^tt^2oUO	Q2Pw�PPP2U[mP!)%fhK9hS[mh9h3h)a0Ignore any ambient pycache prefix for the duration of the test.

Some tests assume bytecode is written next to the source in a
__pycache__ directory.  When the test suite is run with
PYTHONPYCACHEPREFIX set, neutralize it both in this process (used by
cache_from_source) and in any spawned subprocesses.
r�)r2r�r�EnvironmentVarGuard�unset)rDr��envs&  r�no_pycache_prefix�&CommandLineTestsBase.no_pycache_prefix-sb����'�'�
�!���	,��.�.�0�0�C��	�	�/�0��1�",�C��	1�0��",�C��s9�B�A<�A)�A<�
B�)A9	�2A9	�4A<�<
B	�	Bc�B�,[O2NQMQMQMUN!)z-S�-mrf)r�!optim_args_from_interpreter_flags)rD�argss&&r�
_get_run_args�"CommandLineTestsBase._get_run_args?s<����:�:�<������(����	rc��[OUOU2-U@QQ-@vq4oUOQU2U!)�PYTHONIOENCODINGr-r)r	�assert_python_okr�r|�rDr��env_varsr5r6rs&*,   r�assertRunOK� CommandLineTestsBase.assertRunOKDsK��$�5�5��,�,�T�2�3�6>�3�*1�3����	
����c�"��
rc�f�[OUOU2-U@QQ-@vq4oV4U1!)r�r-)r	rr�r�s&*,   r�assertRunNotOK�#CommandLineTestsBase.assertRunNotOKKs@��$�:�:��+�+�D�1�2�5=�2�)0�2������|�rc��[OOU2oUO[O
O
U22P!r�)rrrrer r7r��rDr�r7s&& r�assertCompiled�#CommandLineTestsBase.assertCompiledQs/���~�~�/�/��3����������t�,�-rc��[OOU2oUO[O
O
U22P!r�)rrrr�r r7r�r�s&& r�assertNotCompiled�&CommandLineTestsBase.assertNotCompiledUs1���~�~�/�/��3�����������-�.rc�j�[OUOQP2oUO29^tt^2oUOQ-U@UOU2UO
UO2UO
UO2PPP2P!)%fhP!9h)�bazry)	r	rr3r�r�r�r�r�r�)rD�bazfnr�s&  r�test_no_args_compiles_path�/CommandLineTestsBase.test_no_args_compiles_pathYs}���)�)�$�.�.�%��D��
�
*�
*�
,�
,�����#�s�#�����&��"�"�4�;�;�/��"�"�4�:�:�.�	-�
,�
,�
,�s�AB!�!B2	�*B2	�cpuc���[OUOQP2oUO29^tt^2oUOQ-U@[
OOU2oPPP2[OW[O2]<*
1]*2[OU2OoUOQ-W@[OU2OoUOVE2UOQ-U@[OU2OoUOVE2P!)%fhK�9h)r�ry)�-f)r	rr3r�r�rrrr r]�timer!rRr|r~)rDr�r��pycpathrW�mtime2s&     r� test_no_args_respects_force_flag�5CommandLineTestsBase.test_no_args_respects_force_flagbs����)�)�$�.�.�%��D��
�
*�
*�
,�
,�����#�s�#��n�n�6�6�u�=�G�-�	����4�9�9�;�r�>�+�A�-�.����� �)�)������3������!�*�*������'����%��%�����!�*�*�����E�*�-�
,�s�3E�E*	�#E*	c�H�[OUOQP2UO29^tt^2oUOQ-U@oPPP2UOQW2UOQ-W@oUO
QU2P!)%fhKI9h)r�sListing ry)�-q)r	rr3r�r�r
r4)rDr��noisyrus&   r� test_no_args_respects_quiet_flag�5CommandLineTestsBase.test_no_args_respects_quiet_flagus{���!�!�$�.�.�%��<�
�
*�
*�
,�
,���$�$�+�s�+�E�-��
�
�k�5�)�� � �-��-������e�,�	-�
,�s�B�B!	�B!	�normal�pycr�z	opt-1.pyc�-O�doubleoptimizez	opt-2.pycz-OOc	�$`�[OUQQQUO,*UO[O
O
UO22[U1QkQ22oUO[[OUO22U2SO[OUO2Tt,tFDoUOR2%fJUMJ 	to2P!ttoh)r�rfr�c3�:�SF �D0oUO[OOR2w�	J2	P!3hr�)�formatr2�implementation�	cache_tag)�.0�base�exts& �r�	<genexpr>�)CommandLineTestsBase.f.<locals>.<genexpr>�s0��*I���*I�$�#�k�k�#�*<�*<�*F�*F��L�L�*I�s�8A)z__init__.{}.{}z	bar.{}.{})
r	r�r�rer r7r�r��sortedr|�listdirr��endswith)rDr��switch�expectedr�s&f&  r�f�CommandLineTestsBase.f�s�����*�*�V��|�T�4�;�;�7�.8�
:�
�O�O�B�G�G�N�N�4�+?�+?�@�A��K�*I�K�K�H����V�B�J�J�t�/C�/C�$D�E�x�P����2�:�:�d�k�k�+B�3�+B�R�!#���S�!1�!�b�+B�3�
4��3s�D
�>D
�test_pep3147_paths_c�>�UOQQUO2UO[OOUO22[,QN2oUO[[OUO22U2P!)z-br�)�__init__.pyz__init__.pyczbar.pyzbar.pyc)
r�r�r�r r7r�r�r�r|r�)rDr�s& r�test_legacy_paths�&CommandLineTestsBase.test_legacy_paths�sl��	
����t�T�[�[�1����������(<�(<�=�>��&�'�������
�
�4�;�;� 7�8�(�Crc���UO29^tt^2UOQUO2UO[O
O
UO22[O
OUOQ2oUO[O
O
U22UOQUO2UO[O
O
UO22UO[O
O
U22PPP2P!)%fhP!9h)r�r�)
r�r�r�rer r7r�r�r8r�)rD�
cachecachedirs& r�test_multiple_runs�'CommandLineTestsBase.test_multiple_runs�s����
#�
#�
%�
%����T�4�;�;�/��O�O�B�G�G�N�N�4�+?�+?�@�A��G�G�L�L��)=�)=�}�M�M����R�W�W�^�^�M�:�;����T�4�;�;�/��O�O�B�G�G�N�N�4�+?�+?�@�A����R�W�W�^�^�M�:�;�&�
%�
%�
%�s�D/E�E$	�E$	c�z�UOQUO2[OO	UO
2o[OU[O2]<*
1]*2[OU2OoUOQUO2[OU2OoUOV#2UOQQUO2[OU2OoUOV#2P!)r�r�)
r�r�rrrr�r r]r�r!rRr|r~)rDr�rWr�s&   r�
test_force�CommandLineTestsBase.test_force�s�������t�{�{�+��.�.�2�2�4�:�:�>��
����4�9�9�;�r�>�+�A�-�.����� �)�)������t�{�{�+�����!�*�*������'�����t�T�[�[�1�����!�*�*�����E�*rc�X�[OOUOQ2o[OU2[
OUQP2o[
OUQP2oUOQQUO2UOU2UO[OO[OOUQ222UOQUO2UOU2UOU2P!)�spamr��hamr�z-lr�)r r7r8r�rAr	rr�r�r�r�r�)rD�
subpackage�	subinitfn�hamfns&   r�test_recursion_control�+CommandLineTestsBase.test_recursion_control�s����W�W�\�\�$�+�+�v�6�
�
�����!�-�-�j�*�b�I�	��)�)�*�e�R�@������t�T�[�[�1����y�)��������������Z��(O�P�Q�����t�{�{�+����I�&����E�"rc��[OOUOQ2o[OOUQ2o[OOUQ2oVU1FDo[O
U2J	[OOUQ2o[OUQP2o[OUQP2o[OUQP2oUOQQUO2UOU2UO[OO[OOUQ222UOQQUO2UOU2UOU2UOU2UOQQ	UO2UOU2UOU2UOU2UOU2UOQQ
UO2UOU2UOU2UOU2UOU2P!)r�r��eggsr��eggr�z-r 0r�z-r 1z-r 2z-r 5)r r7r8r�r	�make_pkgrr�r�r�r�r�)	rDr��subpackage2�subpackage3�pkgr�r��spamfn�eggfns	&        r�test_recursion_limit�)CommandLineTestsBase.test_recursion_limit�s����W�W�\�\�$�+�+�v�6�
��g�g�l�l�:�u�5���g�g�l�l�;��7���[�9�C��"�"�3�'�:��G�G�L�L��]�;�	��)�)�*�e�R�@���*�*�;���C���)�)�+�u�b�A������v�t�{�{�3����y�)�����G�G�N�N�2�7�7�<�<�
�M�B�C�	E�	
����v�t�{�{�3����I�&����E�"����v�&�����v�t�{�{�3����I�&����E�"����F�#����u�%�����v�t�{�{�3����I�&����E�"����F�#����E�"rc�v�[OOUOQ2o[O
U2[OQ[OOUQ22[OQ[OOUQ22UO29^tt^2UOQUO2UO[OOUOQQQQ22PPP2P!)%fhP!9h)r��.�evil�evil2r�r�)
r r7r8r�r	rr^r�r�r�)rDrs& r�test_symlink_loop�&CommandLineTestsBase.test_symlink_loop�s���
�g�g�l�l�4�;�;��/�����s�#�
�
�
�3������S�&�1�2�
�
�
�3������S�'�2�3��
#�
#�
%�
%����T�4�;�;�/������������V�V�W�m�!�
�&�
%�
%�
%�s�AD'�'D8	�0D8	c��UOUO2oUOQUO2oUOQU2UOQU2P!)r�r)r�r�r~r|)rDr�rus&  r�
test_quiet�CommandLineTestsBase.test_quiet�sL��� � ����-��� � ��t�{�{�3�����C��'�����e�$rc��[OUOQQ2UOQUO2vqoUOQUO2vqoUO	QU2UOQU2P!)�crunchyfrog�
bad(syntaxr�z-qqr)r	rr�r�r~r|)rDrru�silents&   r�test_silent� CommandLineTestsBase.test_silent�sl���!�!�$�+�+�}�l�K��)�)�$����<���!��*�*�5�$�+�+�>���1����C��'�����f�%rc��UOQQQUO2UOUO2UO	UO
2P!)r�z-xz
ba[^\\/]*$)r�r�r�r�r�r�rhs&r�test_regexp� CommandLineTestsBase.test_regexps>������t�]�D�K�K�@����t�z�z�*����D�K�K�(rc���[OOUOQ2o[OU2[
OUQP2o[
OUQP2oUOQUOU2UOUO2UOUO2UOU2UOU2P!)�foo2r��bar2r�)r r7r8r3rAr	rr�r�r�r�r�)rD�pkgdir2�init2fn�bar2fns&   r�test_multiple_dirs�'CommandLineTestsBase.test_multiple_dirss����'�'�,�,�t�~�~�v�6��
������+�+�G�Z��D���*�*�7�F�B�?������t�{�{�G�4����D�K�K�(����D�J�J�'����G�$����F�#rc��[OUOQQ2UOQQQUO2vqoUO	UQ2P!)rrr��-d�dinsdale�File "dinsdale)r	rr�r�r��rDr5r6rs&   r�test_d_compile_error�)CommandLineTestsBase.test_d_compile_errorsG���!�!�$�+�+�}�l�K��*�*�4��z�4�;�;�O��������/�0rc��[OUOQQ2oUOQQQUO2[OUOQQ2o[O
O
U2o[OU[OOUOQ22[OU2[OUP
Q5vqEoUOUQ	2P!)
r�zraise Exceptionr�r&r'�bingz
import bazzbaz.pyc)�
__isolatedr()r	rr�r�rrrr �renamer7r8�removerr�)rDr�r�r�r5r6rs&      r�test_d_runtime_error�)CommandLineTestsBase.test_d_runtime_errors����)�)�$�+�+�u�>O�P������t�Z����=�
�
&�
&�t�{�{�F�L�
I���n�n�.�.�u�5��
�	�	�#�r�w�w�|�|�D�K�K��;�<�
�	�	�%��$�:�:�2�%�P��������/�0rc��UOQ[OOUOQ2UO
2vqoUO
UQ2UOUQ2UO[OO[OOUO222P!)�-i�
nosuchfilesrror.*nosuchfiles	Traceback)r�r r7r8r3r�r��assertNotRegexr�r�rrrr�r)s&   r�test_include_bad_file�*CommandLineTestsBase.test_include_bad_file&s����*�*��"�'�'�,�,�t�~�~�|�<�d�k�k�K��������1�2����C��.���������	���(H�(H�,0�,@�,@�)B�C�	Drc��[OUOQP2o[OUOQP2o[OUOQP2o[OUOQP2o[[O
O
UOQ2QQQ59^tt^2oUO[O
O
UOQ2[O*2UO[O
O
UOQ	2[O*2PPP2UOQ
[O
O
UOQ2U2UOU2UOU2UOU2UOU2P!)%fhK�9h)�f1�f2�f3�f4�l1r,r-r.�f1.py�f2.pyr4)
r	rr�r;r r7r8r3r<�linesepr�r�r��rDr:r;r<r=r>s&     r�test_include_file_with_arg�/CommandLineTestsBase.test_include_file_with_arg.sF��
�
&�
&�t�{�{�D�"�
=��
�
&�
&�t�{�{�D�"�
=��
�
&�
&�t�{�{�D�"�
=��
�
&�
&�t�{�{�D�"�
=��
�"�'�'�,�,�t�~�~�t�4�c�G�
L�
L�PR��H�H�R�W�W�\�\�$�+�+�w�7��
�
�B�C��H�H�R�W�W�\�\�$�+�+�w�7��
�
�B�C�M�	
����r�w�w�|�|�D�N�N�D�A�2�F����B�����B�����r�"����B��M�
L�s�BG.�.G>	�7G>	c�d�[OUOQP2o[OUOQP2o[OUOQP2o[OUOQP2o[[O
O
UOQ2QQQ59^tt^2oUO[O
O
UOQ2[O*2PPP2UOQ	[O
O
UOQ22UOU2UOU2UOU2UOU2P!)%fhK�9h)
r:r;r<r=r>r,r-r.r@r4)
r	rr�r;r r7r8r3r<rAr�r�r�rBs&     r�test_include_file_no_arg�-CommandLineTestsBase.test_include_file_no_arg<s��
�
&�
&�t�{�{�D�"�
=��
�
&�
&�t�{�{�D�"�
=��
�
&�
&�t�{�{�D�"�
=��
�
&�
&�t�{�{�D�"�
=��
�"�'�'�,�,�t�~�~�t�4�c�G�
L�
L�PR��H�H�R�W�W�\�\�$�+�+�w�7��
�
�B�C�M�����r�w�w�|�|�D�N�N�D�A�B����r�"����B�����r�"����r�"�
M�
L�s�AF�F/	�(F/	c��[OUOQP2o[OUOQP2o[OUOQP2o[OUOQP2oUO29^tt^2[OUOQ2QQ,*oUOOU[O*OQ22[OU2UOU2UOU2UOU2UOU2PPP2P!)%fhP!9h)r:r;r<r=r4�-r�ry)r	rr�r��spawn_pythonr��stdinr<r rA�encode�kill_pythonr�r�)rDr:r;r<r=�ps&     r�test_include_on_stdin�*CommandLineTestsBase.test_include_on_stdinIs��
�
&�
&�t�{�{�D�"�
=��
�
&�
&�t�{�{�D�"�
=��
�
&�
&�t�{�{�D�"�
=��
�
&�
&�t�{�{�D�"�
=���
#�
#�
%�
%��*�*�T�-?�-?��-C�t�S�k�-Q�S�A�
�G�G�M�M�2�b�j�j�=�0�0��9�:��%�%�a�(��"�"�2�&��"�"�2�&�����#��"�"�2�&�&�
%�
%�
%�s�"CE3�3F	�<F	c�R�[OUOQQ2oUOQUOVO
2vq#oUO
UQ2UOU2UOUO2UOUO
2P!)r-zsyntax(errorr5srror)	r	rr�r�r�r�r�r�r�)rD�bingfnr5r6rs&    r�!test_compiles_as_much_as_possible�6CommandLineTestsBase.test_compiles_as_much_as_possibleYs���*�*�4�;�;���O���*�*�<����+1�:�:�?��������g�&����v�&����D�K�K�(����D�J�J�'rc�N�UOQ2oUOUQ2P!)�badfilenamesCan't list 'badfilename')r�r�)rDr6s& r�!test_invalid_arg_produces_message�6CommandLineTestsBase.test_invalid_arg_produces_messagebs#�����}�-������9�:rc��[OUOQP2[OO[OOUOQ22oUOQUO2[UQ29^tt^2oUO2oPPP2UO[OWQ*Q2]2UOQUO2[UQ29^tt^2oUO2oPPP2UO[OUQ*Q2]2P!)%fhK�9h)%fhKR9h)r:r?z --invalidation-mode=checked-hashrM:��N�littlez"--invalidation-mode=unchecked-hash)r	rr�rrrr r7r8r�r;rPr|rQ�
from_bytes)rDr��fprVs&   r�test_pyc_invalidation_mode�/CommandLineTestsBase.test_pyc_invalidation_modefs����!�!�$�+�+�t�R�8��n�n�.�.��G�G�L�L����g�.�0�����;�T�[�[�I�
�#�t�_�_���7�7�9�D���������S�	�8�<�d�C����=�t�{�{�K�
�#�t�_�_���7�7�9�D���������S�	�8�<�d�C�
�_���_�s$�E�E,�E)	�"E)	�,E<	�5E<	r�c	�$�[OUOQP2o,o[]2FD�o[O
O
UOQOU22o[OU2[OUQP2oUO[OUQP22J�	UOUOQQ2UOU2SFDoUOU2J	P!)rzfoo{}r�z-j�0)r	rr3r�r r7r8r�rArr�r�)rDr"�files�suffixr�r�rEs&      r�test_workers�!CommandLineTestsBase.test_workersss����*�*�4�>�>�6�2�F�����A�h�F��W�W�\�\�$�.�.�'�.�.��2H�I�F��H�H�V���*�*�6�:�r�B�B��L�L��2�2�6�6�2�F�G�	�	
�������s�3����F�#��D�����%�rzcompileall.compile_dirc�l�[OQ[OUOQ,Q59^tt^2[
O2UOUO2UOUOP*Q*]2PPP2P!)%fhP!9h)zsys.argvz-j0r�r�)rrpr2�
executabler3rf�mainrer�r|r�)rDrs&&r�test_workers_available_cores�1CommandLineTestsBase.test_workers_available_cores�s~��
�Z�Z�
� �^�^�T�^�^�U�C�E�E��O�O���O�O�K�.�.�/����[�2�2�2�6�y�A�1�E�	E�E�E�E�s�AB"�"B3	�+B3	c���,QNo[OOUO,UN3o[OU2[
OUQQ2o[OOU2o[OOUO,UQ*N3oQoUOQUQVb2[
OU2vqxo	[OOU,UQ*N3o
UOU
[U	[O2Q52UO!U[U	[O2Q52P!)	r�r(r)r?z-sz-pr+r.r,)r r7r8r3r0r	rrrrr�rr
r1r2r3r4rCs&          rrD�+CommandLineTestsBase.test_strip_and_prepend�s��4���w�w�|�|�D�N�N�6�X�6��
���D���*�*�4���A��
�^�^�
-�
-�f�
5���7�7�<�<����>��"��>���
�����x��z�@�$�:�:�2�>�����g�g�l�l�:�=����=���
�
����c�4�4�6�7�	
�	
������c�4�4�6�7�	
rc��[OOUOQ2o[OU2[
OUQQ2o,oQFD3oUO[OOUUQ52J5	QQ,QQ,QQ,,Q	N,oSFD�oUOU,QU2N3SFD^oUO[OOU[U2*22[OV4*2J`	J�	P![ cJvh9h)
�
optimizationsrKrLrrb�1�2c3�R�SF �DoQ[U2*w�	J	P!3h)z-o)r1)r��ns& rr��ICommandLineTestsBase.test_multiple_optimization_levels.<locals>.<genexpr>�s��O���O�q�T�C��F�]�]�O�s� 'rM)rbrprq)r r7r8r3r0r	rrrrrr�rer�rQr�rN)rDr7rr�rOrPrQs&      rrR�6CommandLineTestsBase.test_multiple_optimization_levels�s���w�w�|�|�D�N�N�O�<��
���D���*�*�4�+>�+2�4����$�I��I�I�i�n�n�6�6�v�DM�7�O�
P�%�"�3�Z�!�3�Z�!�3�Z�,�.�� 1�O����T�M�$L�O�$L�M�,�	���������r�#�i�.�/A� B�C���I�I�b�m�,�-� 1��!����s�
D0�0	D?�:D?�>D?c�&�[OOUOQQQ2o[OOUOQQQ2o[OOUOQQQ2o[OU2[OU2[OU2[
OUQQ2o[
OUQQ2o[OOUQ2o[OOUQ	2o[OVF2[OVW2[OOU2o[OOU2o	UOUQ
U2UO[OOU22UO[OOU	22P!)r�rUrVrWrXrYrLrZr[r\z-e)r r7r8r3r0r	rr^rrrr�rer�r�r_s
&         rri�4CommandLineTestsBase.test_ignore_symlink_destination�s]���w�w�|�|�D�N�N�F�E�9�M�������T�^�^�V�U�J�O�
��'�'�,�,�t�~�~�v�u�l�S��
���L�!�
���M�"�
���O�$�'�2�2�<��QX�Y��)�5�5�o�GX�Za�b���'�'�,�,�}�6G�H���W�W�\�\�-�9M�N��
�
�
�>�3�
�
�
�$�9��^�^�5�5�o�F�
�!���8�8�9K�L�
������l�;���������z�2�3���������
�6�7rc�B�UOUOQQ2P!)�-o 1�--hardlink-dupes)r�r3rhs&r�test_hardlink_bad_args�+CommandLineTestsBase.test_hardlink_bad_args�s��	
���D�N�N�F�4F�Grc
��QFCD o[O29^tt^2oUOUQ59^tt^2[OUQQ2o[U2o,QNoU%cUO
Q2UOU,UN3UO[U]*U]*2U2UO[U]*U]*2U2UO[U]*U]*2U2PPP2PPP2CJ#	P!)%fhK9h)%fhCJL9h)T��deduprrLrz)TF)r�z-o 0ryz-o 2)
r1�TemporaryDirectory�subTestr	rrrr�r|r')rDrr7r�pycsr�s&     r�
test_hardlink�"CommandLineTestsBase.test_hardlink�s���#�E��,�,�.�.�$��\�\��\�.�.�*�6�6�t�X�w�O�F�#�F�+�D�9�D�����$6�7��$�$�T�1�D�1��$�$�[��a��$�q�'�%B�E�J��$�$�[��a��$�q�'�%B�E�J��$�$�[��a��$�q�'�%B�E�J�/�/�.�#�.�.��/�.�.�s6�D?	�/D,
�1B$D,
�D?	�,D<�5D<�7D?	�?E
�E
)r�r3r�r�r�)=rkrlrmrnr�rFra�contextmanagerr�r�r�r�r�r�r�r�r
r�requires_resourcer�r��namer�r�r��localsr�r�r�r�r	rrqrrrrr#r*�force_not_colorizedr1r7rCrFrOrSrWr_rrorerrprjrDrRrir{r�rrrsrts@rr�r�s
���� �G����,��,����,��,�"�
��.�/�/�����u�%�+�&��+�"
���u�%�-�&�-�
�5�"��	�[�4�&�)�	�;���0����c�6�
�F�
	4�23���&��-�.�!�$D�<��
+��
+�
#� #�D�"�"��#�� %�&�)�
	$�1�

� � �1�!�1�D� �#�'� (�;�D��%�'A�B�&�C�&�
�Z�Z�(�)�F�*�F�
�(�.�"�"�8�#�8�0H�
K�Krr�c��\sQsQsQsP!)�CommandLineTestsWithSourceEpoch��ryrzryrrr�r��r{rr�c��\sQsQsQsP!)�CommandLineTestsNoSourceEpoch��ryrzryrrr�r��r{rr�c�`�\sQsQsnQs\OQ2sQQksQP	QQQP
-Qks	Q	s
QQ
ksQsQs
QQ
ksQsQsQsQsQsQsUsP!)�HardlinkDedupTestsBase�c��PUmP!r�r�rhs&rrF�HardlinkDedupTestsBase.setUp�s	����	rc#� �[O29^tt^2oVmUw�PUmPPP2P!)%fhP!9h3hr�)r1r�r7)rDr7s& r�temporary_directory�*HardlinkDedupTestsBase.temporary_directory�s5���
�
(�
(�
*�
*�d��I��J��D�I�+�
*�
*�
*�s�A�>�
A�A	�A	�		Ac�F�[OUOV!2!r�)r	rr7)rD�coder�s&&&rr�"HardlinkDedupTestsBase.make_scripts���(�(����D�?�?rrr�rtc�P�[OUOP	UVQ5P!)T)rur��hardlink_dupesrt)rfrr7)rDrr�rts&$$$rr�"HardlinkDedupTestsBase.compile_dir	s�����t�y�y��x�.3�	Brc��UO29^tt^2UOQ2UO[29^tt^2[O
UOP	]P	Q5PPP2UO[29^tt^2[O
UOP	]],P	Q5PPP2PPP2P!)%fhKf9h)%fhK-9h)%fhP!9h)�pass)rur�r�)r�rrGr�rfrr7rhs&r�
test_bad_args�$HardlinkDedupTestsBase.test_bad_args
s����
%�
%�
'�
'����V�$��"�"�:�.�.��&�&�t�y�y��q�6:�<�/��"�"�:�.�.��&�&�t�y�y���1�v�6:�<�/�(�
'�.�.��/�.��(�
'�
'�sM�/C2�	%C	�.%C2�'C	�:C2�C
�C
�C2�C/
�(C/
�*C2�2D	�;D	c��,oU%cUOQ2UOQ2U%cUOQ2QOU2!)z'module docstring'zx = 1z
assert x == 1�
)rr8)rD�	docstring�	assertion�liness&&& r�create_code�"HardlinkDedupTestsBase.create_codesA������L�L�-�.�
���W����L�L��)��y�y���rc	#�j �QFD&oQFDoUOVQ5oV1U1w�	J	J(	P!3h)F�r�r�)FT)r�)rDr�r�r�s&   r�
iter_codes�!HardlinkDedupTestsBase.iter_codes$s7���&�I�*�	��'�'�)�'�Q���	�2�2�+�'�s�13c
�h�UO2FD�vqoUOV#Q59^tt^2UO29^tt^2UOU2o[	U2oUOP
Q5UO
[U]*U]*22UO
[U]*U]*22UO
[U]*U]*22PPP2PPP2J�	P!)%fhK9h)%fhCJ9h)r�r~)r�r�r�rrrr�r')rDr�r�r�rr�s&     r�
test_disabled�$HardlinkDedupTestsBase.test_disabled*s���*.�/�/�*;�&�D�Y����	��G�G��-�-�/�/�!�-�-�d�3�F�#�F�+�D��$�$�5�$�1��$�$�[��a��$�q�'�%B�C��$�$�[��a��$�q�'�%B�C��$�$�[��a��$�q�'�%B�C�
0�H�G�+<�/�/��H�G�G�s0�D	�B*D
�6D	�D�D�D	�D1
�(D1
c�V�[U2oUO[U]*U]*2U%(2SO[U]*U]*2U%(9%cU%(2UO[U]*U]*2U%(2P!)r)rr|r')rDrr�r�r�s&&&& r�check_hardlinks�&HardlinkDedupTestsBase.check_hardlinks6s�����������T�!�W�d�1�g�6�&��	(�����T�!�W�d�1�g�6�&��8�8�y�=�	:�����T�!�W�d�1�g�6�&��	(rc�z�UO2FD}vqoUOV#Q59^tt^2UO29^tt^2UOU2oUO	2UOVBU2PPP2PPP2J	P!)%fhK9h)%fhJ�9h)r�)r�r�r�rrr�)rDr�r�r�rs&    rr��$HardlinkDedupTestsBase.test_hardlink?s���*.�/�/�*;�&�D�Y����	��G�G��-�-�/�/�!�-�-�d�3�F��$�$�&��(�(��I�F�0�H�G�+<�/�/��H�G�G�s/�B)	�4B
�B)	�B&�B&�!B)	�)B:
�2B:
c���QFD�oUOUQ59^tt^2UO29^tt^2UOUO22oUO	UQ5[V!]*2o[V!]*2oUO
[V422PPP2PPP2J�	P!)%fhK9h)%fhJ�9h)r)�opts�r�))rr)rr)rr)r�r�rr�rrrer')rDr�r�pyc1�pyc2s&    r�test_only_two_levels�+HardlinkDedupTestsBase.test_only_two_levelsHs���,�D����4��(�(��-�-�/�/�"�-�-�d�.>�.>�.@�A�F��$�$�d�$�3�"�6��7�3�D�"�6��7�3�D��O�O�K��$;�<�0�)�(�-�/�/��)�(�(�s/�C	�A0C
�+C	�C�
C�C	�C%
�C%
c�<�UO29^tt^2UOUO22oUO,QNQ5[	U]2o[	U]2oUO[
V#22PPP2P!)%fhP!9h)rr�)rrrr)r�rr�rrrer')rDrr�r�s&   r�test_duplicated_levels�-HardlinkDedupTestsBase.test_duplicated_levelsUsw���
%�
%�
'�
'��%�%�d�&6�&6�&8�9�F����l��3��6�1�%�D��6�1�%�D��O�O�K��3�4�(�
'�
'�
'�s�A&B
�
B	�B	c
� �UO29^tt^2UOQ2oUO2UOU2[	U2o[
OU]*2OoUOQ2oUO]],P	Q5UOU[
OU]*2O2UO[U]*U]*22UOU[
OU]*2O2UO[OU]*U]*P	Q52PPP2P!)%fhP!9h)rL�print(0))r�rt��shallow)r�rrr�rr r!r"r|rer'r~r��filecmp�cmp�rDrr��inodes&   r�test_recompilation�)HardlinkDedupTestsBase.test_recompilationas���
%�
%�
'�
'��%�%�g�.�F������ � ��(��F�#�D��G�G�D��G�$�+�+�E��%�%�j�1�F�
���q�!�f�D��9�
���U�B�G�G�D��G�$4�$;�$;�<��O�O�K��Q���a��9�:�����r�w�w�t�A�w�'7�'>�'>�?����W�[�[��a��$�q�'�4�H�I�)(�
'�
'�
'�s�EE<�<F
	�F
	c
�d�UO29^tt^2UOUO2QQ5oUO2UO	U2[U2o[OU]*2OoUOQQQ5o[OQQQP
UOQ5UOU[OU]*2O2UOU[OU]*2O2UO[U]*U]*22UO[O U]*U]*P	Q52PPP2P!)%fhP!9h)�module)r�r�r�z-cz
import module)r.r�r�)r�rr�rr�rr r!r"r	r�r7r|r�r'r�r�r�s&   r�test_import�"HardlinkDedupTestsBase.test_importzs:���
%�
%�
'�
'��%�%�d�&6�&6�&8�x�%�H�F������ � ��(��F�#�D��G�G�D��G�$�+�+�E��%�%�j�x�%�@�F�
�*�*��d�O��$�)�)�
�

���U�B�G�G�D��G�$4�$;�$;�<����U�B�G�G�D��G�$4�$;�$;�<����[��a��$�q�'�:�;����W�[�[��a��$�q�'�4�H�I�-(�
'�
'�
'�s�E:F�F/	�'F/	r�)rr)FF)rkrlrmrnrFrar�r�rrr�r�r�r�r�r�r�r�r�r�rrrsrts@rr�r��s������������@�B�4�B�)�B�5�B�<� �3�
D�(�G�=�
5�J�2J�Jrr�c��\sQsQsQsP!)�!HardlinkDedupTestsWithSourceEpochi�ryrzryrrr�r��r{rr�c��\sQsQsQsP!)�HardlinkDedupTestsNoSourceEpochi�ryrzryrrr�r��r{rr��__main__);rfrar��importlib.utilrrcr rzr5rSr2r1�test.test_importlib.utilr�r�rxrr�multiprocessing.utilrr�concurrent.futuresr�concurrent.futures.processrro�NotImplementedError�ModuleNotFoundErrorr�test.supportrr	�test.test_py_compiler
r�test.support.os_helperrr�r�ryrrr'r)�TestCaserwr�skipIf�is_wasir�r�r�r��skip_unless_hardlinkr�r�r�rkriryrr�<module>r�s�������	�	��
�
�
�����%�	"�U�6�?��� ���"�&�:�8�+������'�
�
�
�O�
P�P�F�7��g8�g8�T
	�%8�%-�%6�%6�/F�7;�	�	�(;�(0�(9�(9�2I�:?�	�
������"D�E�4�8�$�$�4�F�4�:TK�TK�n	�&:�'/�'8�'8�1H�9=�	�	�$8�%-�%6�%6�/F�7<�	����ZJ�ZJ� �ZJ�z	�(>�(0�(9�(9�2I�:>�	�	�&<�&.�&7�&7�0G�8=�	��z���M�M�O���W$	�0�1�"�!��"�s�G	�	G�G�G

Youez - 2016 - github.com/yon3zu
LinuXploit