403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.51
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 :  C:/Python313/Lib/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python313/Lib/test/__pycache__/test_py_compile.cpython-313.pyc
�

��i?2�	�x�SSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSK	r	SSK
r
SSKJr SSK
JrJr SrSr"SS\"\
R&55r"SS	5r"S
S\\
R&\SS
9r"SS\\
R&\SS
9r"SS\
R&5r\S:Xa\
R4"5 gg)�N)�support)�	os_helper�
script_helperc�F^�[R"T5U4Sj5nU$)z+Runs function with SOURCE_DATE_EPOCH unset.c�>�[R"5nURS5 T"U0UD6sSSS5 $!,(df   g=f)N�SOURCE_DATE_EPOCH)r�EnvironmentVarGuard�unset��args�kwargs�env�fxns   ��)C:\Python313\\Lib\test\test_py_compile.py�wrapper�*without_source_date_epoch.<locals>.wrappers7���
�
*�
*�
,���I�I�)�*���'��'�-�
,�
,�s	�:�
A��	functools�wraps�rrs` r�without_source_date_epochr�%����_�_�S��(��(��N�c�F^�[R"T5U4Sj5nU$)z)Runs function with SOURCE_DATE_EPOCH set.c�~>�[R"5nSUS'T"U0UD6sSSS5 $!,(df   g=f)N�	123456789r)rr	rs   �rr�'with_source_date_epoch.<locals>.wrappers5���
�
*�
*�
,��'2�C�#�$���'��'�-�
,�
,�s�
.�
<rrs` r�with_source_date_epochrrrc�(^�\rSrSrU4SjrSrU=r$)�SourceDateEpochTestMeta�%c��>�[T	U]XX#5n[U5HPnURS5(dM[	XV5nU(a[U5nO[
U5n[XVU5 MR U$)N�test_)�super�__new__�dir�
startswith�getattrrr�setattr)
�mcls�name�bases�dct�source_date_epoch�cls�attr�methr�	__class__s
         �rr%�SourceDateEpochTestMeta.__new__&sb����g�o�d�%�5����H�D����w�'�'��s�)��$�4�T�:�G�7��=�G���7�+���
r�)�__name__�
__module__�__qualname__�__firstlineno__r%�__static_attributes__�
__classcell__)r2s@rr r %s
����rr c�$�\rSrSrSrSrSrSr\R"\
RR\
R5(+=(d% \
RR\
R5S5S5rSrS	rS
r\R(\R"\
R*S:HS5\R,S
555rSrSr\R"\R6R8S:�S5S5rSrSrSr Sr!Sr"g)�PyCompileTestsBase�5c���[R"[R"5S9Ul[R
R
URS5UlURS-Ul[RRUR5Ul[R
R[R"55SUl[R
RUR5SnU(a[R"U5 [!URS5nUR#S5 SSS5 g!,(df   g=f)N)r&�_test.py�cr�w�x = 123
)�tempfile�mkdtemp�os�getcwd�	directory�path�join�source_path�pyc_path�	importlib�util�cache_from_source�
cache_path�
splitdrive�	cwd_drive�chdir�open�write)�self�drive�files   r�setUp�PyCompileTestsBase.setUp7s���!�)�)�b�i�i�k�:����7�7�<�<����
�C����(�(�3�.��
�#�.�.�:�:�4�;K�;K�L������+�+�B�I�I�K�8��;���
���"�"�4�#3�#3�4�Q�7����H�H�U�O�
�$�"�"�C�
(�D��J�J�{�#�)�
(�
(�s�7E�
E c��[R"UR5 UR(a![R
"UR5 gg�N)�shutil�rmtreerGrQrErR�rUs r�tearDown�PyCompileTestsBase.tearDownGs.���
�
�d�n�n�%��>�>��H�H�T�^�^�$�rc�:�[R"URUR5 UR	[
RRUR55 UR[
RRUR55 gr[)
�
py_compile�compilerJrK�
assertTruerErH�exists�assertFalserOr^s r�test_absolute_path�%PyCompileTestsBase.test_absolute_pathLsX�����4�+�+�T�]�]�;���������t�}�}�5�6������������8�9rc���[R"URS-UR5 [RR	UR5(deUR[5 [R"URUR5 SSS5 g!,(df   g=f![[4a URS5 gf=f)Nz.actualz.need to be able to create a symlink for a file)
rE�symlinkrKrH�islink�assertRaises�FileExistsErrorrbrcrJ�NotImplementedError�OSError�skipTestr^s r�test_do_not_overwrite_symlinks�1PyCompileTestsBase.test_do_not_overwrite_symlinksQs���	D��J�J�t�}�}�y�0�$�-�-�@��7�7�>�>�$�-�-�0�0�0�0��"�"�?�3��"�"�4�#3�#3�T�]�]�C�4�3�3��	$�W�-�	L��M�M�J�K�	L�s�.B;�5,B*�*
B8�;!C�Cz7requires os.devnull and for it to be a non-regular filec��UR[5 [R"UR[
R5 SSS5 g!,(df   g=fr[)rlrmrbrcrJrE�devnullr^s r�&test_do_not_overwrite_nonregular_files�9PyCompileTestsBase.test_do_not_overwrite_nonregular_files]s8��
�
�
��
/����t�/�/����<�0�
/�
/�s�0A�
Ac��[R"UR5 UR[R
R
UR55 gr[)rbrcrJrdrErHrerOr^s r�test_cache_path�"PyCompileTestsBase.test_cache_pathes3�����4�+�+�,���������t���7�8rc�"�[R"UR5 [R"[
RRUR5[
RRUR55 SSS5 UR[
RRUR55 UR[
RRUR55 g!,(df   N=fr[)r�
change_cwdrGrbrcrErH�basenamerJrKrdrerfrOr^s r�test_cwd�PyCompileTestsBase.test_cwdis���
�
!�
!�$�.�.�
1����r�w�w�/�/��0@�0@�A�!�w�w�/�/��
�
�>�
@�2�	
��������t�}�}�5�6������������8�9�	2�
1�s�A&D�
Dc��[R"[RR	UR
5[RR	UR55 UR[RRUR55 UR[RRUR55 gr[)rbrcrErH�relpathrJrKrdrerfrOr^s r�test_relative_path�%PyCompileTestsBase.test_relative_pathpsu�����2�7�7�?�?�4�+;�+;�<��7�7�?�?�4�=�=�9�	;���������t�}�}�5�6������������8�9r�ntz/cannot control directory permissions on Windowsc��[R"UR5n[R"UR[R5 UR[5 [R"URUR5 SSS5 [R"URUR5 g!,(df   N:=f![R"URUR5 f=fr[)rE�statrG�chmod�S_IREADrl�IOErrorrbrcrJrK�st_mode)rU�modes  r�test_exceptions_propagate�,PyCompileTestsBase.test_exceptions_propagatevs����w�w�t�~�~�&��
���������.�	3��"�"�7�+��"�"�4�#3�#3�T�]�]�C�,�
�H�H�T�^�^�T�\�\�2�,�+��
�H�H�T�^�^�T�\�\�2�s$�C�&,C�C�
C�C�-Dc���[RR[RR[5SS5n[
R"5 UR[R"USS95 SSS5 UR[RR[RRU555 g!,(df   NZ=f)N�tokenizedata�bad_coding2.pyF��doraise)rErHrI�dirname�__file__r�captured_stderr�assertIsNonerbrcrfrerLrMrN)rU�
bad_codings  r�test_bad_coding�"PyCompileTestsBase.test_bad_coding�s����W�W�\�\�"�'�'�/�/�(�";�"0�"2�4�
��
$�
$�
&����j�0�0��U�K�L�'����������N�N�,�,�Z�8�:�	;�'�
&�s�%C�
Cc�n�[R"URUR5 UR	[
RRUR55 UR[
RRUR55 [URS5n[RRUR5S05nSSS5 [
RR!S5(aSnOSnUR#WU5 g!,(df   NJ=f)N�rb�testr�r)rbrcrJrKrdrErHrerfrOrSrL�_bootstrap_external�
_classify_pyc�read�environ�get�assertEqual)rU�fp�flags�expected_flagss    r�test_source_date_epoch�)PyCompileTestsBase.test_source_date_epoch�s������4�+�+�T�]�]�;���������t�}�}�5�6������������8�9�
�$�-�-��
&�"��1�1�?�?����	�6�2�'�E�'��:�:�>�>�-�.�.�!�N�!�N������/�'�
&�s�20D&�&
D4rztest does not work with -Oc	�Z�[RRURS5n[R
R
U5nUS-n[RRU5upE[RRU5nUR[RRXe5[RRSSR[RR555 [US5nURS5 SSS5 [ R""U5 UR%[RR'U55 UR)[RR'U55 g!,(df   N�=f)Nz
foo.bar.pyr@�__pycache__zfoo.bar.{}.pycrArB)rErHrIrGrLrMrN�splitr|r��format�sys�implementation�	cache_tagrSrTrbrcrdrerf)rU�
weird_pathrOrK�head�tail�penultimate_tailrWs        r�test_double_dot_no_clobber�-PyCompileTestsBase.test_double_dot_no_clobber�s���W�W�\�\�$�.�.�,�?�
��^�^�5�5�j�A�
���#���W�W�]�]�:�.�
���7�7�+�+�D�1������G�G�L�L�)�0��G�G�L�L�� �'�'��(:�(:�(D�(D�E�
G�	H�
�*�c�
"�d��J�J�{�#�#����:�&���������z�2�3����������1�2�	#�
"�s�F�
F*c�b�URS[R"URSS95 g)Nzopt-2�)�optimize)�assertInrbrcrJr^s r�test_optimization_path�)PyCompileTestsBase.test_optimization_path�s#���
�
�g�z�1�1�$�2B�2B�Q�O�Prc��[R"UR[RRS9 [URS5n[RRUR5S05nSSS5 URWS5 [R"UR[RRS9 [URS5n[RRUR5S05nSSS5 URUS5 g!,(df   N�=f!,(df   N2=f)N)�invalidation_moder�r�r��)
rbrcrJ�PycInvalidationMode�CHECKED_HASHrSrOrLr�r�r�r��UNCHECKED_HASH)rUr�r�s   r�test_invalidation_mode�)PyCompileTestsBase.test_invalidation_mode�s���������(�<�<�I�I�	
��$�/�/�4�
(�B��1�1�?�?����	�6�2�'�E�)�	
�����%�������(�<�<�K�K�	
��$�/�/�4�
(�B��1�1�?�?����	�6�2�'�E�)�	
�����$�)�
(��)�
(�s�0D0�%0E�0
D>�
Ec	�X�[RR[RR[5SS5n[
R"5nUR[R"USSS95 UR[R"USSS95 URUR5S5 UR[R5 [R"USSS9 SSS5 SSS5 g!,(df   N=f!,(df   g=f)	Nr�r�Fr�)r��quietT�r�)rErHrIr�r�rr�r�rbrcr��getvaluerl�PyCompileError)rUr��stderrs   r�
test_quiet�PyCompileTestsBase.test_quiet�s����W�W�\�\�"�'�'�/�/�(�";�"0�"2�4�
��
$�
$�
&�&����j�0�0��U�RS�T�U����j�0�0��T�QR�S�T����V�_�_�.��3��"�"�:�#<�#<�=��"�"�:�t�1�E�>�	'�
&�>�=��	'�
&�s%�B
D�"D
�9D�

D	�D�
D)c��[URS5nURS5 SSS5 [R"URUR
SS9nUR
X R
5 UR[RRUR
55 g!,(df   N�=f)N�wbs#coding=U7+AA0''
Tr�)rSrJrTrbrcrKr�rdrErHre)rUrWrKs   r�test_utf7_decoded_cr_compiles�0PyCompileTestsBase.test_utf7_decoded_cr_compiles�s~��
�$�"�"�D�
)�T��J�J�,�-�*��%�%�d�&6�&6��
�
�t�T������=�=�1���������t�}�}�5�6�*�
)�s�B/�/
B=)rOrQrGrKrJN)#r5r6r7r8rXr_rgrq�unittest�skipIfrErHrert�isfilerurxr}r�r�skip_if_dac_overrider+�skip_unless_working_chmodr�r�r�r�r�r�r�r�r�r�r�r9r4rrr<r<5s��$� %�
:�

D��_�_�������
�
�3�3�Q�r�w�w�~�~�b�j�j�7Q�N�P�=�P�=�9�:�:��#�#�
�_�_�R�W�W��_�F�H��(�(�
3�)�H�$�
3�;�0��_�_�S�Y�Y�'�'�!�+�-I�J�3�K�3�&Q�%�$	F�7rr<c��\rSrSrSrg)�PyCompileTestsWithSourceEpoch��r4N�r5r6r7r8r9r4rrr�r�����	rr�T)�	metaclassr.c��\rSrSrSrg)� PyCompileTestsWithoutSourceEpoch��r4Nr�r4rrr�r��r�rr�Fc�x�\rSrSrSrSr\R"5S5rSr	Sr
SrSrS	r
S
rSrSrg
)�PyCompileCLITestCase��c�r�[R"5Ul[RRURS5Ul[RRURSS9Ul
[URS5nURS5 SSS5 g!,(df   g=f)Nr?r�)�optimizationrArB)
rCrDrGrErHrIrJrLrMrNrOrSrT)rUrWs  rrX�PyCompileCLITestCase.setUp�s~��!�)�)�+����7�7�<�<����
�C���#�.�.�:�:�4�;K�;K�-/�;�E���
�$�"�"�C�
(�D��J�J�{�#�)�
(�
(�s�
B(�(
B6c�D�[R"UR5 gr[)rr]rGr^s rr_�PyCompileCLITestCase.tearDown�s��������(rc���SnU(aHUSS:Xa?SU;a9[R"[RUSS/USR	5SS9$[
R"US/UQ70UD6$)NT�-mr�-�inputrb)r��capture_output)�
subprocess�runr��
executable�encoder�assert_python_ok)rUrr
�optss    r�pycompilecmd�!PyCompileCLITestCase.pycompilecmd�so��
���D��G�s�N�w�&�'8��>�>�3�>�>�4��s�"K�(.�w��(>�(>�(@�15�7�
7��-�-�d�L�R�4�R�6�R�Rrc�2�[R"SS/UQ76$)Nr�rb)r�assert_python_failure)rUrs  r�pycompilecmd_failure�)PyCompileCLITestCase.pycompilecmd_failures���2�2�4��M��M�Mrc��UR[RRUR55 URSURS9nURURS5 URURS5 URURS5 UR[RRUR55 g)Nr�)r�rr)rfrErHrerOr�rJr��
returncode�stdoutr�rd)rU�results  r�
test_stdin�PyCompileCLITestCase.test_stdins��������������8�9��"�"�3�d�.>�.>�"�?������*�*�A�.��������,��������,���������t���7�8rc�2�URURUR5upnURUS5 URUS5 URUS5 UR[R
R
UR55 g)Nrr)r�rJr�rdrErHrerO)rU�rcr�r�s    r�test_with_files�$PyCompileCLITestCase.test_with_files
sr��!�.�.�t�/?�/?��AQ�AQ�R���F�����Q�������%������%���������t���7�8rc��[RR[RR[5SS5nURU5up#nUR
US5 UR
US5 URSU5 g)Nr��badsyntax_3131.pyr�rsSyntaxError)rErHrIr�r�r�r�r��rU�
bad_syntaxr�r�r�s     r�test_bad_syntax�$PyCompileCLITestCase.test_bad_syntaxsn���W�W�\�\�"�'�'�/�/�(�";�"0�"5�7�
�"�6�6�z�B���F�����Q�������%��
�
�n�f�-rc��[RR[RR[5SS5nURSU5up#nUR
US5 UR
US5 UR
US5 g)Nr�r�-qr�r)rErHrIr�r�r�r�rs     r�test_bad_syntax_with_quiet�/PyCompileCLITestCase.test_bad_syntax_with_quietsr���W�W�\�\�"�'�'�/�/�(�";�"0�"5�7�
�"�6�6�t�Z�H���F�����Q�������%������%rc�L�[RR[RR[5S5nURURU5up#nURUS5 URUS5 URSUR55 g)N�should_not_exists.pyr�rsno such file or directory)
rErHrIr�r�r�rJr�r��lower�rU�should_not_existsr�r�r�s     r�test_file_not_exists�)PyCompileCLITestCase.test_file_not_exists&sx���G�G�L�L�������)B�DZ�[��!�6�6�t�7G�7G�IZ�[���F�����Q�������%��
�
�2�F�L�L�N�Crc�2�[RR[RR[5S5nURSURU5up#nURUS5 URUS5 URUS5 g)Nrrr�r)rErHrIr�r�r�rJr�r
s     r�test_file_not_exists_with_quiet�4PyCompileCLITestCase.test_file_not_exists_with_quiet-su���G�G�L�L�������)B�DZ�[��!�6�6�t�T�=M�=M�O`�a���F�����Q�������%������%r)rOrGrJN)r5r6r7r8rXr_r�requires_subprocessr�r�r�r�rrrrr9r4rrr�r��sP��$�)�
� � �"�	S�#�	S�N�9�9�.�&�D�&rr��__main__)r�importlib.utilrLrErbr\r�r�r�rCr�r�r�test.supportrrrr�type�TestCaser r<r�r�r�r5�mainr4rr�<module>rs�����	��
���
����1���
�d�8�#4�#4�5�
� c7�c7�L	�$6�$,�$5�$5�.E�6:�	�	�'9�'/�'8�'8�1H�9>�	�I&�8�,�,�I&�X�z���M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit