| Server IP : 118.27.122.248 / Your IP : 216.73.216.63 Web Server : Apache System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64 User : c9415830 ( 11735) PHP Version : 8.4.17 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python27/lib64/python2.7/test/ |
Upload File : |
�
�q2_c @ s� d Z d d l Z d d l Z d d l m Z m Z d d l m Z e d � Z d e j f d � � YZ
d e j f d � � YZ d
� Z e
d k r� e � n d S( s:
Very minimal unittests for parts of the readline module.
i����N( t run_unittestt
import_module( t assert_python_okt readlinet TestHistoryManipulationc B s2 e Z d Z e j e e d � d � d � � Z RS( 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_historysX The history update test cannot be run because the clear_history method is not available.c C s9 t j � t j d � t j d � | j t j d � d � | j t j d � d � | j t j d � d � t j d d � | j t j d � d � | j t j d � d � | j t j d � d � | j t j � d � t j d � | j t j d � d � | j t j d � d � | j t j � d � d S( Ns
first lines second linei i i s
replaced line( R R t add_historyt assertEqualt get_history_itemt Nonet replace_history_itemt get_current_history_lengtht remove_history_item( t self( ( s7 /opt/alt/python27/lib64/python2.7/test/test_readline.pyt testHistoryUpdates s
( t __name__t
__module__t __doc__t unittestt
skipUnlesst hasattrR R ( ( ( s7 /opt/alt/python27/lib64/python2.7/test/test_readline.pyR s t TestReadlinec B s; e Z e j e j d k o'