HEX
Server: Apache
System: Linux p3plzcpnl506847.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: slfopp7cb1df (5698090)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //opt/python38/lib/python3.8/idlelib/idle_test/__pycache__/test_pyshell.cpython-38.pyc
U

�i�_{�@sldZddlmZddlZddlmZddlmZGdd�dej�Z	Gdd	�d	ej�Z
ed
krhejdd�dS)
zTest pyshell, coverage 12%.�)�pyshellN)�requires)�Tkc@seZdZdd�Zdd�ZdS)�FunctionTestc
Cs�|j}dD]p\}}}d}|d}|j||d��F|p6d}t�||�}|t|�|�||||�d|�d|���W5QRXq
dS)N))��r)Zfiname��=�<r	)�file�barZShellz
 RESTART: � )�assertEqual�subTestr�restart_line�len)�self�eqr�mul�extra�widthr�line�r�=/opt/python38/lib/python3.8/idlelib/idle_test/test_pyshell.py�test_restart_line_wide
sz#FunctionTest.test_restart_line_widec
Csld\}}|d||dfD]0}|j|d��|�t�|d�|�W5QRXq|�t�|dd�|d�dS)N)z= RESTART: Shell��)rr�z =)rrrr)r�expectZtaglenrrrr�test_restart_line_narrows
 z%FunctionTest.test_restart_line_narrowN)�__name__�
__module__�__qualname__rrrrrrr
src@s,eZdZedd��Zedd��Zdd�ZdS)�PyShellFileListTestcCstd�t�|_|j��dS)NZgui)rr�rootZwithdraw��clsrrr�
setUpClass"szPyShellFileListTest.setUpClasscCs|j��|`dS�N)r$Zdestroyr%rrr�
tearDownClass(s
z!PyShellFileListTest.tearDownClasscCs,t�|j�}|�|jtj�|�|j�dSr()rZPyShellFileListr$rZEditorWindowZPyShellEditorWindowZassertIsNone)rZpsflrrr�	test_init0szPyShellFileListTest.test_initN)r r!r"�classmethodr'r)r*rrrrr# s


r#�__main__r)�	verbosity)
�__doc__ZidlelibrZunittestZtest.supportr�tkinterrZTestCaserr#r �mainrrrr�<module>s