Your IP : 216.73.216.213


Current Path : /opt/alt/python311/lib64/python3.11/idlelib/idle_test/__pycache__/
Upload File :
Current File : //opt/alt/python311/lib64/python3.11/idlelib/idle_test/__pycache__/test_iomenu.cpython-311.pyc

�

�0�i�	����dZddlmZddlZddlmZddlmZddlm	Z	ddlm
Z
ddlmZdd	l
mZmZGd
�dej��Zd�ZGd
�dej��Zedkrejd���dSdS)zTest , coverage 17%.�)�iomenuN)�requires)�Tk)�EditorWindow)�util)�Func)�open�detect_encodingc�F�eZdZed���Zed���Zd�Zd�ZdS)�
IOBindingTestc���td��t��|_|j���t	|j���|_t
j|j��|_dS)N�gui)�root)	rrr�withdrawr�editwinr�	IOBinding�io)�clss �D/opt/alt/python311/lib64/python3.11/idlelib/idle_test/test_iomenu.py�
setUpClasszIOBindingTest.setUpClasssX��������4�4����������"���1�1�1����!�#�+�.�.�����c�P�|j���|j���|`|j���|jj�dd��D]}|j�|���|j�	��|`dS)N�after�info)
r�closer�_closer�update_idletasks�tk�call�after_cancel�destroy)r�ids  r�
tearDownClasszIOBindingTest.tearDownClasss������������������K���!�!�#�#�#��(�+�"�"�7�F�3�3�	&�	&�B��H�!�!�"�%�%�%�%���������H�H�Hrc�P�|�|jj|j��dS)N)�assertIsrr��selfs r�	test_initzIOBindingTest.test_init's"���
�
�d�g�o�t�|�4�4�4�4�4rc��|j}|j}|j}|jj}d|j_d}t
|���|j_||��|��|j`|j`|�dd��||��d|j	z��||�
dd��d��||��d|j	z��dS)Nz>>> if 1)�resultg�?�az1.0zend-1cza
)�assertEqualr�fixnewlinesr�text�interpr�get_prompt_text�insert�eol_convention�get)r'�eqr�fixr.�	shelltexts      r�test_fixnewlines_endz"IOBindingTest.test_fixnewlines_end*s���
�
��
�W���n���z���#�����	�'+�9�'=�'=�'=���$�
��3�3�5�5�)�����L����!=����C�����
��3�3�5�5�#�b�'�'�(�(�(�
��4�8�8�E�8�$�$�e�,�,�,�
��3�3�5�5�#�b�'�'�(�(�(�(�(rN)�__name__�
__module__�__qualname__�classmethodrr#r(r7�rrrrsf�������/�/��[�/�����[��5�5�5�)�)�)�)�)rrc�X��t�fd�tjjD����S)Nc3�2�K�|]}d���|dvV��dS)�*�Nr<)�.0�filetype_tuple�	extensions  �r�	<genexpr>z*_extension_in_filetypes.<locals>.<genexpr>>sG��������	�I���>�!�,�,������r)�anyrr�	filetypes�rCs`r�_extension_in_filetypesrH=sA��������$�.�8������rc� �eZdZd�Zd�Zd�ZdS)�
FiletypesTestc���tjD]R}|�|���5|�t	|����ddd��n#1swxYwY�SdS)NrG)r�
py_extensions�subTest�
assertTruerH)r'rCs  r�test_python_source_filesz&FiletypesTest.test_python_source_filesEs����+�	�	�I����	��2�2�
�
����+�I�6�6����
�
�
�
�
�
�
�
�
�
�
����
�
�
�
��	�	s�#A�A	�A	c�J�|�td����dS)Nz.txt�rNrHr&s r�test_text_fileszFiletypesTest.test_text_filesLs#�����/��7�7�8�8�8�8�8rc�J�|�td����dS)N�rQr&s r�test_all_fileszFiletypesTest.test_all_filesOs#�����/��3�3�4�4�4�4�4rN)r8r9r:rOrRrUr<rrrJrJDsA���������9�9�9�5�5�5�5�5rrJ�__main__�)�	verbosity)�__doc__�idlelibr�unittest�test.supportr�tkinterr�idlelib.editorrr�idlelib.idle_test.mock_idler�tokenizer	r
�TestCaserrHrJr8�mainr<rr�<module>rcs4��������������!�!�!�!�!�!�������'�'�'�'�'�'�������,�,�,�,�,�,�
+�*�*�*�*�*�*�*�()�()�()�()�()�H�%�()�()�()�V���5�5�5�5�5�H�%�5�5�5��z����H�M�A��������r