← Back
Editing: test_compilerop.cpython-311.pyc
� �@�c� � �R � d Z ddlZddlZddlZddlmZ d� Zd� Zd� Zd� Z d� Z d � ZdS ) z!Tests for the compilerop module. � N)� compileropc �` � d} t j | � � }|� d� � sJ �d S )N�x=1z<ipython-input-0�r � code_name� startswith��code�names �D/usr/lib/python3/dist-packages/IPython/core/tests/test_compilerop.py�test_code_namer s6 � ��D����%�%�D��?�?�-�.�.�.�.�.�.�.� c �b � d} t j | d� � }|� d� � sJ �d S )Nr � z<ipython-input-9r r s r �test_code_name2r $ s8 � ��D����a�(�(�D��?�?�-�.�.�.�.�.�.�.r c �� � t j � � } t t j � � }| � d� � t t j � � |k sJ �dS )z;Test the compiler correctly compiles and caches inputs r N�r �CachingCompiler�len� linecache�cache��cp�ncaches r � test_cacher * sQ � � � #� %� %�B� ��� !� !�F��H�H�U�O�O�O��y����&�(�(�(�(�(�(r c �8 � t j � � dk sJ �d S )Nzutf-8)�sys�getdefaultencoding� r r �test_proper_default_encodingr 2 s$ � � �!�#�#�w�.�.�.�.�.�.r c �� � t j � � } t t j � � }| � d� � t t j � � |k sJ �d S )Nu t = 'žćčšđ'r r s r �test_cache_unicoder"