PATH:
opt
/
alt
/
python37
/
lib64
/
python3.7
/
idlelib
/
idle_test
/
__pycache__
B � f�: � @ s d Z ddlmZ ddlmZ ddlZddlmZ ddlmZ ddl m Z mZ ddlmZ dd l mZ ejjZe�d �e�d �e�d �e�d �d�ZdZd d� Zdd� ZG dd� dej�ZG dd� dej�ZG dd� dej�ZG dd� dej�Zedk�rejdd� dS )zTest colorizer, coverage 93%.� )� colorizer)�requiresN)�mock)�partial)�Tk�Text)�config)� Percolator� )�main� highlight�keys� extensionsa+ if True: int ('1') # keyword, builtin, string, comment elif False: print(0) # 'string' in comment else: float(None) # if in comment if iF + If + IF: 'keyword matching must respect case' if'': x or'' # valid string-keyword no-space combinations async def f(): await g() 'x', '''x''', "x", """x""" c C s t tj_d S )N)�testcfgr �idleConf�userCfg� r r �E/opt/alt/python37/lib64/python3.7/idlelib/idle_test/test_colorizer.py�setUpModule! s r c C s t tj_d S )N)�usercfgr r r r r r r �tearDownModule% s r c @ s, e Zd Zdd� Zdd� Zdd� Zdd� Zd S ) �FunctionTestc C s | � t�dd�d� d S )NZtest)�a�bZcdz(?P<test>a|b|cd))�assertEqualr �any)�selfr r r �test_any+ s zFunctionTest.test_anyc C s | � t�� � d S )N)� assertTruer Zmake_pat)r r r r � test_make_pat/ s zFunctionTest.test_make_patc C s� t j}| j}d}|�|�}||�� d d� |�||�� �}||�� d d� |�||�� �}||�� d d� |�||�� �}||�� d d � |�||�� �}||�� d d� d S ) Nzdef f(): print("hello") �KEYWORD�def�SYNC� �BUILTIN�print�STRINGz"hello")r �progr �search� groupdict�end)r r'