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ƒZedkrejdd 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