403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.94
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:/Python315/Lib/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/test/__pycache__/test_zipapp.cpython-315.opt-1.pyc
R
>lqjKJc��Qs]PHs]PHs]PHs]PHs]PHs]PHs]PHs]PH s]QH$G
s
]QH$Gs]QH0G
s
QQ\O2sQQ\O2s\Q6Xc\O$2P!P!)	z#Test harness for the zipapp module.)�
requires_zlib)�	os_helper)�patchc�`�\sQs]snQsQsQsQsQsQs	Qs
QsQ	sQ
s
QsQs\2Q
2sQsQsQsQsQsQsQsQsQsQsQsQsQsQsQs Qs!\"OF\$OJQ6HQ2\&ONQ 22s(\"OF\$OJQ6HQ2Q!2s)Q"s*Us+P!)#�
ZipAppTestz!Test zipapp module functionality.c��[O2oUOUO2[O
UO2UmP!�N��tempfile�TemporaryDirectory�
addCleanup�cleanup�pathlib�Path�name�tmpdir��selfrs& �%C:\Python315\\Lib\test\test_zipapp.py�setUp�ZipAppTest.setUp�4���,�,�.��������'��l�l�6�;�;�/���c�2�UOQ*oUO2UQ*O2UOQ*o[O[U2[U22UO
UO22P!��source�__main__.py�
source.pyz�r�mkdir�touch�zipapp�create_archive�str�
assertTrue�is_file�rr�targets&  r�test_create_archive�ZipAppTest.test_create_archivesc�����x�'������	�-�	�&�&�(����|�+�����c�&�k�3�v�;�7�������(�)rc��UOQ*oUO2UQ*O2UOQ*o[OV2UOUO
22P!r)rrrr r!r#r$r%s&  r� test_create_archive_with_pathlib�+ZipAppTest.test_create_archive_with_pathlib"sY�����x�'������	�-�	�&�&�(����|�+�����f�-�������(�)rc��UOQ*oUO2UQ*O2UQ*O2UQ*O2UQ*Q*O2[O2o[
O[U2U2UO]2[OUQ29^tt^2oUOQUO22UOQUO22PPP2P!)%fhP!9h)rr�foo�barz__init__.py�rzfoo/zbar/)
rrr�io�BytesIOr r!r"�seek�zipfile�ZipFile�assertIn�namelist�rrr&�zs&   r� test_create_archive_with_subdirs�+ZipAppTest.test_create_archive_with_subdirs+s������x�'������	�-�	�&�&�(�	�%���� �	�%���� �	�%��-�	'�.�.�0���������c�&�k�6�2����A��
�_�_�V�S�
)�
)�Q��M�M�&�!�*�*�,�/��M�M�&�!�*�*�,�/�*�
)�
)�
)�s�-AD8�8E		�E		c��UOQ*oUO2UQ*O2UQ*O2UQ*Q*O2UQ*Q*O2UQ*O2[O2o[
O[U2U2UO]2[OUQ29^tt^2oUOUO2,QN2PPP2P!)%fhP!9h)r�zed.py�bin�qux�bazrr/)rzbin/zbin/bazzbin/quxr<)
rrrr0r1r r!r"r2r3r4�assertEqualr6)rrr&�zfs&   r�test_create_sorted_archive�%ZipAppTest.test_create_sorted_archive:s������x�'������	�(�	�!�!�#�	�%���� �	�%��%�	�&�&�(�	�%��%�	�&�&�(�	�-�	�&�&�(���������c�&�k�6�2����A��
�_�_�V�S�
)�
)�R����R�[�[�]�G�
I�*�
)�
)�
)�s�#D8�8E		�E		c�l�QoUOQ*oUO2UQ*O2UQ*O2UQ*O2UOQ*o[OV#UQ5[
OUQ29^tt^2oUOQUO22UOQUO22UOQUO22PPP2P!)%fhP!9h)c�"�UOQ6g!)z.pyc)�suffix��paths&r�skip_pyc_files�BZipAppTest.test_create_archive_with_filter.<locals>.skip_pyc_filesMs���;�;�&�(�(rrr�test.pyztest.pycr��filterr/)
rrrr r!r3r4r5r6�assertNotIn)rrIrr&r8s&    r�test_create_archive_with_filter�*ZipAppTest.test_create_archive_with_filterJs���	)����x�'������	�-�	�&�&�(�	�)�	�"�"�$�	�*�	�#�#�%����|�+�����f�^�D�
�_�_�V�S�
)�
)�Q��M�M�-�����6��M�M�)�Q�Z�Z�\�2����Z�����6�*�
)�
)�
)�s�7A!D"�"D3	�+D3	c��UOoUQ*O2UQ*O2UOQ*o[OV2[O
UQ29^tt^2oUO
[UO22]2UOQUO22UOQUO22PPP2P!)%fhP!9h)rrK�
target.pyzr/�
rrr r!r3r4r@�lenr6r5r7s&   r�"test_create_archive_self_insertion�-ZipAppTest.test_create_archive_self_insertion\s�������	�-�	�&�&�(�	�)�	�"�"�$����|�+�����f�-�
�_�_�V�S�
)�
)�Q����S�����.��2��M�M�-�����6��M�M�)�Q�Z�Z�\�2�*�
)�
)�
)�s�A*C8�8D		�D		c�4�UOoUQ*O2UQ*oUO2UO[O29^tt^2[O
V2PPP2P!)%fhP!9h)rrR)rr�assertRaisesr �ZipAppErrorr!r%s&  r�"test_target_overwrites_source_file�-ZipAppTest.test_target_overwrites_source_filejsc������	�-�	�&�&�(��,�&������
�
�
�v�1�1�
2�
2��!�!�&�1�3�
2�
2�
2�s�%B�B	�B	c��UOoUQ*O2UQ*oUO2Qo[OVUQ5[O
UQ29^tt^2oUO
[UO22]2UOQUO22PPP2P!)%fhP!9h)rrRc�0�UOQ2%(!)z*.pyz)�match)�ps&r�<lambda>�HZipAppTest.test_target_overwrites_filtered_source_file.<locals>.<lambda>{s��1�7�7�7�#3�3rrLr/rS)rrr&�
pyz_filterr8s&    r�+test_target_overwrites_filtered_source_file�6ZipAppTest.test_target_overwrites_filtered_source_filets�������	�-�	�&�&�(��,�&������3�
����f�Z�@�
�_�_�V�S�
)�
)�Q����S�����.��2��M�M�-�����6�*�
)�
)�
)�s�8A
C�C	�C	c��QoUOQ*oUO2UQ*O2UQ*O2UQ*O2UQ*Q*O2UOQ*o[OV#UQ5[
OUQ29^tt^2oUO[UO22]2UOQUO22UOQUO22PPP2P!)%fhP!9h)	c�0�UO]*Q6g!)��dummy)�partsrGs&r�skip_dummy_dir�IZipAppTest.test_create_archive_filter_exclude_dir.<locals>.skip_dummy_dir�s���:�:�a�=�G�+�+rrrrKrhztest2.pyrrLr/)rrrr r!r3r4r@rTr6r5)rrjrr&r8s&    r�&test_create_archive_filter_exclude_dir�1ZipAppTest.test_create_archive_filter_exclude_dir�s���	,����x�'������	�-�	�&�&�(�	�)�	�"�"�$�	�'�	� � �"�	�'�	�J�	&�-�-�/����|�+�����f�^�D�
�_�_�V�S�
)�
)�Q����S�����.��2��M�M�-�����6��M�M�)�Q�Z�Z�\�2�*�
)�
)�
)�s�A*E	�	E	�E	c��UOQ*oUO2UQ*O2[O[U22UOQ*oUO
UO22P!rr)rr�expected_targets&  r�"test_create_archive_default_target�-ZipAppTest.test_create_archive_default_target�s_�����x�'������	�-�	�&�&�(����c�&�k�*��+�+��4������/�/�1�2rc	��UOQ*oUO2UQ*O2UQ*O2UOQ*o[OVP	Q5[
OUQ29^tt^2oQFD<oUOUOU2O[
O2J>	PPP2P!)%fhP!9h)rrrKr)�
compressedr/)rrK)rrrr r!r3r4r@�getinfo�
compress_type�ZIP_DEFLATED)rrr&r8rs&    r�$test_create_archive_with_compression�/ZipAppTest.test_create_archive_with_compression�s������x�'������	�-�	�&�&�(�	�)�	�"�"�$����|�+�����f��>�
�_�_�V�S�
)�
)�Q�2��� � ����4��!>�!>�!(�!5�!5�7�3�*�
)�
)�
)�s�AC+�+C<	�4C<	c�|�UOQ*oUO2UQ*O2UOQ*oUO[O
29^tt^2[O[U2[U22PPP2P!)%fhP!9h)r�foo.pyr�rrrrXr rYr!r"r%s&  r�test_no_main�ZipAppTest.test_no_main�sv�����x�'������	�(�	�!�!�#����|�+��
�
�
�v�1�1�
2�
2��!�!�#�f�+�s�6�{�;�3�
2�
2�
2�s�6*B*�*B;	�3B;	c��UOQ*oUO2UQ*O2UOQ*oUO[O
29^tt^2[O[U2[U2QQ5PPP2P!)%fhP!9h)rrr�
pkg.mod:fn��mainr{r%s&  r�test_main_and_main_py� ZipAppTest.test_main_and_main_py�sx�����x�'������	�-�	�&�&�(����|�+��
�
�
�v�1�1�
2�
2��!�!�#�f�+�s�6�{��N�3�
2�
2�
2�s�6,B,�,B=	�5B=	c��UOQ*oUO2UQ*O2UOQ*o[O[U2[U2QQ5[O[U2Q29^tt^2oUOQUO22UOQUOQ22PPP2P!)%fhP!9h)rrzrrr�r/rspkg.mod.fn())rrrr r!r"r3r4r5r6�readr7s&   r�test_main_written�ZipAppTest.test_main_written�s������x�'������	�(�	�!�!�#����|�+�����c�&�k�3�v�;�\�J�
�_�_�S��[�#�
.�
.�!��M�M�-�����6��M�M�/�1�6�6�-�+@�A�/�
.�
.�
.�s�"AC.�.C?	�7C?	c��UOQ*oUO2UQ*O2UQ*O2UOQ*o[O[U2[U2QQ5[O[U2Q29^tt^2oUO]UO2OQ22PPP2P!)%fhP!9h)rrzzbar.pyrrr�r/r)rrrr r!r"r3r4r@r6�countr7s&   r�test_main_only_written_once�&ZipAppTest.test_main_only_written_once�s������x�'������

�(�	�!�!�#�	�(�	�!�!�#����|�+�����c�&�k�3�v�;�\�J�
�_�_�S��[�#�
.�
.�!����Q��
�
�� 2� 2�=� A�B�/�
.�
.�
.�s�90C3�3D	�<D	c���UOQ*oUO2UOQ*o,QNoSFD�oUOUQ59^tt^2UO[O
29^tt^2[O[U2[U2UQ5PPP2PPP2J�	P!)%fhK9h)%fhJ�9h)rrr�)
�r-zfoo:z:barz12:barza.b.c.:dz.a:bza:b.za:.bza:silly name)rr�subTestrXr rYr!r")rrr&�problemsr�s&    r�test_main_validation�ZipAppTest.test_main_validation�s������x�'���������|�+��
���D����4��(�(��&�&�v�'9�'9�:�:��)�)�#�f�+�s�6�{��N�;�)�(��:�:��)�(�(�s0�(C	�,C
�0C	�C�C�C	�C*
�"C*
c��UOQ*oUO2UQ*O2UOQ*o[O[U2[U22UO
Q29^tt^2oUOUO]2Q2PPP2P!)%fhP!9h)rrr�rb�#!)	rrrr r!r"�open�assertNotEqualr��rrr&�fs&   r�test_default_no_shebang�"ZipAppTest.test_default_no_shebang�s������x�'������	�-�	�&�&�(����|�+�����c�&�k�3�v�;�7�
�[�[��
�
�!�������q�	�5�1��
�
�
�s�"B=�=C	�C	c���UOQ*oUO2UQ*O2UOQ*o[O[U2[U2QQ5UO
Q29^tt^2oUOUO]2Q2UOQUO22PPP2P!)%fhP!9h)rrr�python��interpreterr�r�spython
)
rrrr r!r"r�r@r��readliner�s&   r�test_custom_interpreter�"ZipAppTest.test_custom_interpreter�s������x�'������	�-�	�&�&�(����|�+�����c�&�k�3�v�;�H�M�
�[�[��
�
�!����Q�V�V�A�Y��.����[�!�*�*�,�7��
�
�
�s�AC�C0	�(C0	c�*�UOQ*oUO2UQ*O2[O2o[
O[U2UQQ5UOUO2Q2P!)rrr�r�s	#!python
)
rrrr0r1r r!r"�assertStartsWith�getvaluer%s&  r�test_pack_to_fileobj�ZipAppTest.test_pack_to_fileobj�sb�����x�'������	�-�	�&�&�(���������c�&�k�6�x�H����f�o�o�/��?rc�V�UOQ*oUO2UQ*O2UOQ*o[O[U2[U2QQ5UO
[O[U22Q2P!�rrrr�r��rrrr r!r"r@�get_interpreterr%s&  r�test_read_shebang�ZipAppTest.test_read_shebangsq�����x�'������	�-�	�&�&�(����|�+�����c�&�k�3�v�;�H�M�����/�/��F��<�h�Grc�R�UOQ*oUO2UQ*O2UOQ*o[O[U2[U22UO
[O[U22P2P!rr�r%s&  r�test_read_missing_shebang�$ZipAppTest.test_read_missing_shebangso�����x�'������	�-�	�&�&�(����|�+�����c�&�k�3�v�;�7�����/�/��F��<�d�Crc���UOQ*oUO2UQ*O2UOQ*o[O[U2[U2QQ5UOQ*o[O[U2[U2QQ5UO
[O[U22Q2P!)rrrr�r��changed.pyz�	python2.7r��rrr&�
new_targets&   r�test_modify_shebang�ZipAppTest.test_modify_shebangs������x�'������	�-�	�&�&�(����|�+�����c�&�k�3�v�;�H�M��[�[�=�0�
����c�&�k�3�z�?��T�����/�/��J��@�+�Nrc��UOQ*oUO2UQ*O2UOQ*o[O[U2[U2QQ5[O2o[O[U2UQQ5UOUO2Q2P!�rrrr�r�r�s#!python2.7
)
rrrr r!r"r0r1r�r�r�s&   r�test_write_shebang_to_fileobj�(ZipAppTest.test_write_shebang_to_fileobj%s������x�'������	�-�	�&�&�(����|�+�����c�&�k�3�v�;�H�M��Z�Z�\�
����c�&�k�:�;�O����j�1�1�3�5E�Frc�&�UOQ*oUO2UQ*O2[O[U22o[O[UOQ*22o[O[UOQ*22o[OVQQ5[OV#QQ5UO[OU2Q2P!)rrztarget1.pyzztarget2.pyzr�r�r�)
rrrr�FakePathr"r r!r@r�)rr�target1�target2s&   r�test_read_from_pathlike_obj�&ZipAppTest.test_read_from_pathlike_obj1s������x�'������	�-�	�&�&�(��#�#�C��K�0���$�$�S����}�)D�%E�F���$�$�S����}�)D�%E�F�����f�8�D����g�K�H�����/�/��8�+�Frc���UOQ*oUO2UQ*O2UOQ*o[O2o[
O[U2UQQ5[O2oUO]2[
OV4QQ5UOUO2Q2P!r�)rrrr0r1r r!r"r2r�r�)rrr&�temp_archiver�s&    r�test_read_from_fileobj�!ZipAppTest.test_read_from_fileobj>s������x�'������	�-�	�&�&�(����|�+���z�z�|�����c�&�k�<�X�N��Z�Z�\�
����!�����l�K�P����j�1�1�3�5E�Frc���UOQ*oUO2UQ*O2UOQ*o[O[U2[U2QQ5UOQ*o[O[U2[U2PQ5UO
[O[U22P2P!)rrrr�r�r�r�r�s&   r�test_remove_shebang�ZipAppTest.test_remove_shebangKs������x�'������	�-�	�&�&�(����|�+�����c�&�k�3�v�;�H�M��[�[�=�0�
����c�&�k�3�z�?��M�����/�/��J��@�$�Grc�T�UOQ*oUO2UQ*O2[O2o[
O[U2UQQ5[O2oUO]2[
OV#PQ5UO]2[OUQ29^tt^2oUO[UO22Q.2PPP2P!)%fhP!9h)rrr�r�r/)rrrr0r1r r!r"r2r3r4r@�setr6)rrr&r�r8s&    r�test_content_of_copied_archive�)ZipAppTest.test_content_of_copied_archiveVs������x�'������	�-�	�&�&�(���������c�&�k�6�x�H��Z�Z�\�
����A�����f�d�C������
�_�_�Z��
-�
-�����S�����.���@�.�
-�
-�
-�s�!+D�D'	�D'	�win32z*Windows does not support an executable bitc�t�UOQ*oUO2UQ*O2UOQ*o[O[U2[U2QQ5UO
UO2O[O*2P!r�)
rrrr r!r"r#�stat�st_mode�S_IEXECr%s&  r�test_shebang_is_executable�%ZipAppTest.test_shebang_is_executableesu��
���x�'������	�-�	�&�&�(����|�+�����c�&�k�3�v�;�H�M�������
�-�-����<�=rc�t�UOQ*oUO2UQ*O2UOQ*o[O[U2[U2PQ5UO
UO2O[O*2P!)rrrr�)
rrrr r!r"�assertFalser�r�r�r%s&  r�!test_no_shebang_is_not_executable�,ZipAppTest.test_no_shebang_is_not_executableqsw�����x�'������	�-�	�&�&�(����|�+�����c�&�k�3�v�;�D�I��������.�.����=�>r�r),�__name__�
__module__�__qualname__�__firstlineno__�__doc__rr'r*r9rBrOrUrZrcrlrprrwr|r�r�r�r�r�r�r�r�r�r�r�r�r�r�r��unittest�skipIf�sys�platformr�skip_unless_working_chmodr�r��__static_attributes__�__classdictcell__��
__classdict__s@rrrs����+�0�
*�*�
0�I� 7�$3�2�7�3�(3��_�7��7�<�O�	B�C�"O�2�
8�@�H�D�	O�
G�G�G�	H�A��_�_�S�\�\�W�,�A�C��(�(�>�)�C�>��_�_�S�\�\�W�,�A�C�?�C�?rrc�`�\sQsQsnQsQsQsQsQsQs	Qs
\Q	\OQ
5Q2sQsQ
sUsP!)�ZipAppCmdlineTest�}z$Test zipapp module command line API.c��[O2oUOUO2[O
UO2UmP!rrrs& rr�ZipAppCmdlineTest.setUp�rrc���UOQ*oUO2UQ*O2UOQ*o[OV2U!r)rrrr r!r%s&  r�make_archive�ZipAppCmdlineTest.make_archive�sK�����x�'������	�-�	�&�&�(����|�+�����f�-��
rc� �UOQ*oUO2UQ*O2[U2,o[O
U2UO
Q2oUOUO22P!)rrz.pyz)	rrrr"r r��with_suffixr#r$)rr�argsr&s&   r�test_cmdline_create�%ZipAppCmdlineTest.test_cmdline_create�sd�����x�'������	�-�	�&�&�(��F��}�����D���#�#�F�+��������(�)rc���UO2oUOQ*o[U2Q[U2,o[OU2UOUO
22P!�rR�-o)r�rr"r r�r#r$)r�originalr&r�s&   r�test_cmdline_copy�#ZipAppCmdlineTest.test_cmdline_copy�sQ���$�$�&�����|�+���H�
�t�S��[�1�����D��������(�)rc�d�UO2oUOQ*o[U2Q[U2,oUO[29^tt^2o[
OU2PPP2UOWOO2P!)%fhK79hr��
r�rr"rX�
SystemExitr r�r#�	exception�code�rr�r&r��cms&    r�test_cmdline_copy_inplace�+ZipAppCmdlineTest.test_cmdline_copy_inplace�sw���$�$�&�����|�+���H�
�t�S��]�3��
�
�
�z�
*�
*�b��K�K���+�	
������)�)�*�+�
*�s�B�B/	�(B/	c�h�UO2oUOQ*o[U2Q[U2QQ,oUO[29^tt^2o[
OU2PPP2UOWOO2P!)%fhK79h)rRr�z-mzfoo:barr�r�s&    r�test_cmdline_copy_change_main�/ZipAppCmdlineTest.test_cmdline_copy_change_main�s{���$�$�&�����|�+���H�
�t�S��[�$�	�B��
�
�
�z�
*�
*�b��K�K���+�	
������)�)�*�+�
*�s�B!�!B1	�*B1	z
sys.stdout)�new_callablec�l�UO2o[U2Q,oUO[29^tt^2o[O
U2PPP2UO
WOO]2UO
UO2Q2P!)%fhKX9h)�--infozInterpreter: <none>
)
r�r"rXr�r r�r@r�r�r�)r�mock_stdoutr&r�r�s&&   r�test_info_command�#ZipAppCmdlineTest.test_info_command�s����"�"�$���F��X�&��
�
�
�z�
*�
*�b��K�K���+�	
������*�*�A�.�����-�-�/�1H�I�	+�
*�s�B#�#B3	�,B3	c�0�UOQ*o[U2Q,oUO[29^tt^2o[O
U2PPP2UO
WOO2P!)%fhK79h)z	dummy.pyzr)	rr"rXr�r r�r#r�r�)rr&r�r�s&   r�test_info_error�!ZipAppCmdlineTest.test_info_error�sc�����{�*���F��X�&��
�
�
�z�
*�
*�b��K�K���+�	
������)�)�*�+�
*�s�B�B	�B	r�)r�r�r�r�r�rr�r�r�rrrr0�StringIOr	rr�r�r�s@rr�r�}sQ����.�0�
�*�*�+�+��<�b�k�k�2�J�3�J�+�+rr��__main__)r�r0r
r�r�r	r�r r3�test.supportrr�
unittest.mockr�TestCaserr�r�r��rr�<module>rsk��)�	���
���
��&�"��j?��"�"�j?�ZJ+��)�)�J+�Z�z���M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit