| 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 : |
R
>lqj%E c �� � Q s ] PHs] PHs] PHs] PHs] PHs] PHs] PHs] QH G s ] QH(Gs ] QH0G
s
GsGs ] QH@Gs ] QHHGs ] QHPGs \ Q2 s\ \Q2 % c Q \O0 7 sL\O4 Q
6H sQ s\O8 \ \Q2 Q
2 Q Q\O: 2 2 s Q Q\O: 2 s\ Q6X c \OB 2 P! P! )z:
Very minimal unittests for parts of the readline module.
)�verbose)�
import_module)�unlink�temp_dir�TESTFN)�run_pty)�assert_python_ok)�requires_working_threading�readline�_READLINE_LIBRARY_VERSIONzEditLine wrapper�editlinec �N � [ % c� [ [ Q 2 % c; [ Q[ O Q
02 [ Q[ O
Q
02 [ [ Q2 % c [ Q[ O 8 02 [ Q[ 02 P! P! )�_READLINE_VERSIONzreadline version: z#xzreadline runtime version: r
zreadline library version: zuse libedit emulation? )r �hasattrr �printr
�_READLINE_RUNTIME_VERSIONr
�is_editline� � �'C:\Python315\\Lib\test\test_readline.py�setUpModuler s� � ��w� �8�0�1�1��&�x�'A�'A�"�&E�F�G��.�x�/Q�/Q�RT�.U�V�W��8�8�9�9��.�x�/Q�/Q�.T�U�V�
�'��}�5�6� r �
clear_historyzXThe history update test cannot be run because the clear_history method is not available.c �x ` � \ sQ s]'s n QsQ s\O \ \ Q2 Q2 Q 2 s
Q sQ sQs
U sP! ) �TestHistoryManipulationz�
These tests were added to check that the libedit emulation on OSX and the
"real" readline have the same interface for history manipulation. That's
why the tests cover only a small subset of the interface.
c � � [ O 2 [ O Q 2 [ O Q2 U O [ O ] 2 P2 U O [ O ]2 Q 2 U O [ O ]2 Q2 [ O ] Q2 U O [ O ] 2 P2 U O [ O ]2 Q2 U O [ O ]2 Q2 U O [ O
2 ]2 [ O ] 2 U O [ O ] 2 P2 U O [ O ]2 Q2 U O [ O
2 ]2 P! )�
first line�second linez
replaced line)r r �add_history�assertEqual�get_history_item�replace_history_item�get_current_history_length�remove_history_item��selfs &r �testHistoryUpdates�*TestHistoryManipulation.testHistoryUpdates1 sR � ���� ����\�*����]�+�����2�2�1�5�t�<�����2�2�1�5�|�D�����2�2�1�5�}�E��%�%�a��9�����2�2�1�5�t�<�����2�2�1�5��G�����2�2�1�5�}�E�����<�<�>��B��$�$�Q�'�����2�2�1�5�t�<�����2�2�1�5�}�E�����<�<�>��Br �append_history_filezappend_history not availablec �j � [ O P
Q5 oUO 2 UO oU O [
U2 [ O 2 [ O Q2 [ O Q2 [ O U2 [ O 2 U O [ O 2 ] 2 [ O U2 U O [ O 2 ]2 U O [ O ]2 Q2 U O [ O ]2 Q2 [ O ]U2 [ O 2 [ O U2 U O [ O 2 ]2 U O [ O ]2 Q2 U O [ O ]2 Q2 U O [ O ]2 Q2 [ O
U2 [ O ]U2 [ O
U2 [ O U2 U O# [$ 2 9^tt^ 2 [ O QU2 PPP2 U O# [$ 2 9^tt^ 2 [ O QU2 PPP2 P! [ c K�h 9 h ) % f h K_9 h ) % f h P! 9 h)F)�deleter r i���i �)�tempfile�NamedTemporaryFile�close�name�
addCleanupr r r r �write_history_filer r �read_history_filer r&