CoolFace
Apppublic

Aluode/PerceptionLabPortable

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes
test_setopt.cpython-310.pyc19 linesDownload Raw Back to __pycache__
1o

2��YiU�@s&ddlZddlmZGdd�d�ZdS)�N)�setoptc@s4eZdZedd��Zedd��Zdd�Zdd�Zd	S)3�TestEditcCsDt��}t|dd��}|�|�Wd�|S1swY|S)N�utf-8��encoding)�configparser�ConfigParser�open�	read_file)�filename�parser�reader�r��E:\DocsHouse\542 percep lab latest\PerceptionLab\PerceptionLab_Portable\python_embed\Lib\site-packages\setuptools/tests/test_setopt.py�parse_configs4��zTestEdit.parse_configcCs@t|d��}|�|�d��Wd�dS1swYdS)N�wbr)r	�write�encode)�file�content�strmrrr�5write_texts"�zTestEdit.write_textcCsp|�d�}|�t|�d�t�t|�ttdd�d��|�t|��}|�dd�dks,J�|�dd	�dks6J�d6S)zh7        When editing a file, non-ASCII characters encoded in8        UTF-8 should be retained.9        �	setup.cfgu[names]10jaraco=джарако�yes)�other��namesrZjaracouджаракоrN)�joinr�strr�edit_config�dictr�get)�self�tmpdir�configrrrr�test_utf8_encoding_retaineds11z$TestEdit.test_utf8_encoding_retainedcCs^|�d�}|�t|�d�t�t|�ttdd�d��|jdd�}d|vs'J�d	|vs-J�d12S)zG13        When editing a file, case of keys should be retained.14        rz[names]15FoO=bArr)�oTherr�asciirZFoOr&N)rrrrrr �	read_text)r"r#r$�actualrrr�test_case_retaineds16zTestEdit.test_case_retainedN)�__name__�17__module__�__qualname__�staticmethodrrr%r*rrrrrs1819r)rZsetuptools.commandrrrrrr�<module>s
Aluode/PerceptionLabPortable · CoolFace