403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.216.115
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/IPython/lib/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/IPython/lib/tests/__pycache__/test_editorhooks.cpython-311.pyc
�

�@�ct��<�dZddlZddlmZddlmZddlmZd�ZdS)zTest installing editor hooks�N)�mock)�get_ipython)�editorhooksc����g��fd�}tjdd���tjd|��5t	��j�dd��ddd��n#1swxYwYt���dksJ��d	d
}�d	d}|dd
iksJ�tj	�
d��rgd�}nd}|d	}||ksJ�dS)Nc�Z����||d���tjdiddi��S)N)�args�kwargszwait.return_valuer�)�appendr�	MagicMock)rr	�calleds  ��D/usr/lib/python3/dist-packages/IPython/lib/tests/test_editorhooks.py�
fake_popenz'test_install_editor.<locals>.fake_popen
sG����
�
���
�
�	�	�	��~�9�9�!4�a� 8�9�9�9�zfoo -l {line} -f {filename}F)�waitzsubprocess.Popen�the file�@�rrr	�shellT�win)�fooz-l�64z-frzfoo -l 64 -f 'the file')r�install_editorr�patchr�hooks�editor�len�sys�platform�
startswith)rrr	�expected�cmdr
s     @r�test_install_editorr#sM���
�F�:�:�:�:�:���<�5�I�I�I�I�	
��&�
�	3�	3�3�3��
�
��"�"�:�r�2�2�2�3�3�3�3�3�3�3�3�3�3�3����3�3�3�3��v�;�;�!������!�9�V��D�
�A�Y�x�
 �F��g�t�_�$�$�$�$�
�|���u�%�%�-�8�8�8���,��
�q�'�C��(�?�?�?�?�?�?s�(A(�(A,�/A,)	�__doc__r�unittestr�IPythonr�IPython.librr#r
rr�<module>r(sc��"�"�
�
�
�
�������������#�#�#�#�#�#�����r

Youez - 2016 - github.com/yon3zu
LinuXploit