Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 18.225.209.24
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : test_readline.pyo
�
?��cc@s�dZddlZddlZddlmZmZddlmZed�Zdej	fd��YZ
dej	fd	��YZd
�Ze
dkr�e�ndS(s:
Very minimal unittests for parts of the readline module.
i����N(trun_unittestt
import_module(tassert_python_oktreadlinetTestHistoryManipulationcBs2eZdZejeed�d�d��ZRS(s�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.
    t
clear_historysXThe history update test cannot be run because the clear_history method is not available.cCs9tj�tjd�tjd�|jtjd�d�|jtjd�d�|jtjd�d�tjdd�|jtjd�d�|jtjd�d�|jtjd�d�|jtj�d�tjd�|jtjd�d�|jtjd�d�|jtj�d�dS(Ns
first linessecond lineiiis
replaced line(	RRtadd_historytassertEqualtget_history_itemtNonetreplace_history_itemtget_current_history_lengthtremove_history_item(tself((s9/usr/local/python-2.7/lib/python2.7/test/test_readline.pyttestHistoryUpdatess



(t__name__t
__module__t__doc__tunittestt
skipUnlessthasattrRR(((s9/usr/local/python-2.7/lib/python2.7/test/test_readline.pyRstTestReadlinecBs;eZejejdko'dejkd�d��ZRS(itlibedits%not supported in this library versioncCs2tdddd�\}}}|j|d�dS(Ns-csimport readlinetTERMsxterm-256colort(RR(R
trctstdouttstderr((s9/usr/local/python-2.7/lib/python2.7/test/test_readline.pyt	test_init/s(RRRtskipIfRt_READLINE_VERSIONRR(((s9/usr/local/python-2.7/lib/python2.7/test/test_readline.pyR-scCsttt�dS(N(RRR(((s9/usr/local/python-2.7/lib/python2.7/test/test_readline.pyt	test_main;st__main__(RtosRttest.test_supportRRttest.script_helperRRtTestCaseRRRR(((s9/usr/local/python-2.7/lib/python2.7/test/test_readline.pyt<module>s!	
© 2025 GrazzMean