Your IP : 3.14.249.191


Current Path : /opt/alt/python36/lib64/python3.6/idlelib/idle_test/__pycache__/
Upload File :
Current File : //opt/alt/python36/lib64/python3.6/idlelib/idle_test/__pycache__/test_config.cpython-36.pyc

3

� f%��@sNdZddlmZddlZddlZddlZddlmZmZddl	Z	ddl	m
Z
ddlZddlmZej
Z
e
jZiZejd�Zed<ejd�Zed	<ejd�Zed
<ejd�Zed<dd
�Zdd�ZGdd�de	j�ZGdd�de	j�ZGdd�de	j�ZGdd�de	j�ZGdd�de	j�ZGdd�de	j�Zedk�rJe	j dd�dS)z�Test config, coverage 93%.
(100% for IdleConfParser, IdleUserConfParser*, ConfigChanges).
* Exception is OSError clause in Save method.
Much of IdleConf is also exercised by ConfigDialog and test_configdialog.
�)�configN)�captured_stderr�findfile)�mock)�Func��main�	highlight�keys�
extensionscCstt_dt_dS)NT)�testcfg�idleConf�userCfg�idlelib�testing�rr�B/opt/alt/python36/lib64/python3.6/idlelib/idle_test/test_config.py�setUpModulesrcCstt_dt_dS)NF)�usercfgr
rrrrrrr�tearDownModule!src@s4eZdZdZdZdd�Zdd�Zdd�Zd	d
�ZdS)�IdleConfParserTestzTest that IdleConfParser worksz�
        [one]
        one = false
        two = true
        three = 10

        [two]
        one = a string
        two = true
        three = false
    cCs�tjd�}|j|j�|j}|j|jdddd�d�|j|jdddd�d�||jddd	d�d
�||jdd�d�|j|jdddd�d�|j|jdddd�d�||jdd�d�||jdd�d
�|j|jdd��||jdddd�d�dS)Nr�one�bool)�typeF�twoT�three�int�
za string�true�false�notZexistZDEFAULT)�default)r�IdleConfParser�read_string�assertEqualZassertIs�GetZassertIsNone)�self�parser�eqrrr�test_get5s
zIdleConfParserTest.test_getcCs\tjd�}|j|j�|j}|j|d�dddg�|j|d�dddg�|j|d�g�dS)Nrrrrz	not exist)rr"r#�
GetOptionList�assertCountEqualr$)r&r'Zget_listrrr�test_get_option_listJs
z'IdleConfParserTest.test_get_option_listcCs&tjd�}|j�|j|j�g�dS)Nr)rr"�Loadr$�sections)r&r'rrr�test_load_nothingRs
z$IdleConfParserTest.test_load_nothingcCsFtd�}tj|�}|j�|j|jdd�d�|j|jd�dg�dS)Nzcfgparser.1zFoo Bar�foo�newbar)rrr"r-r$r%r*)r&�config_pathr'rrr�test_load_fileWs

z!IdleConfParserTest.test_load_fileN)	�__name__�
__module__�__qualname__�__doc__rr)r,r/r3rrrrr&src@sReZdZdZddd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�ZdS)�IdleUserConfParserTestz"Test that IdleUserConfParser worksrcCs
tj|�S)N)r�IdleUserConfParser)r&�pathrrr�
new_parserdsz!IdleUserConfParserTest.new_parsercCs�|j�}|jd�|j|jddd��|j|jddd��|j|jddd��|j|jdd�d�|j|jddd��|j|j�ddg�|j|jdd�d�dS)N�Foo�barrr�Bar)	r;�add_section�
assertTrue�	SetOption�assertFalser$r%r+r.)r&r'rrr�test_set_optiongs
z&IdleUserConfParserTest.test_set_optioncCsZ|j�}|jd�|jddd�|j|jdd��|j|jdd��|j|jdd��dS)Nr<r=rZNotZExist)r;�
AddSectionrAr@ZRemoveOptionrB)r&r'rrr�test_remove_optionws
z)IdleUserConfParserTest.test_remove_optioncCsN|j�}|j|j�g�|jd�|jd�|jd�|j|j�ddg�dS)Nr<r>)r;r$r.rDr+)r&r'rrr�test_add_section�s


z'IdleUserConfParserTest.test_add_sectioncCs^|j�}|jd�|jd�|jddd�|j|j�dddg�|j�|j|j�dg�dS)Nr<r>ZIdle�name�val)r;rDrAr+r.ZRemoveEmptySectionsr$)r&r'rrr�test_remove_empty_sections�s

z1IdleUserConfParserTest.test_remove_empty_sectionscCsv|j�}|jd�|jd�|j|j��|j|j�g�|jddd�|jd�|j|j��|j|j�dg�dS)Nr<r>r=r)	r;rDr@ZIsEmptyr$r.rArBr+)r&r'rrr�
test_is_empty�s


z$IdleUserConfParserTest.test_is_emptycCs�tj��r}tjj|d�}|j|�}|j�|jd�|jddd�|j	�|j
tjj|��|j�|jtjj|��WdQRXdS)Nztest.cfgr<r=r)
�tempfile�TemporaryDirectory�osr:�joinr;Z
RemoveFilerDrA�Saver@�existsrB)r&�tdirr:r'rrr�test_remove_file�s


z'IdleUserConfParserTest.test_remove_filecCs�tj���}tjj|d�}|j|�}|jd�|jddd�|jtjj	|��|j
�|jtjj	|��|jd�|j
�|jtjj	|��WdQRXdS)Nztest.cfgr<r=r)
rKrLrMr:rNr;rDrArBrPrOr@�remove_section)r&rQr:r'rrr�	test_save�s



z IdleUserConfParserTest.test_saveN)r)r4r5r6r7r;rCrErFrIrJrRrTrrrrr8as
	


r8c@s,eZdZdZedd��Zedd��ZdAdd�Zd	d
�Ze	j
ejj
d�d�d
d��Ze	j
ejj
d�d�dd��Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zd d!�Zd"d#�Zd$d%�Zd&d'�Zd(d)�Zd*d+�Zd,d-�Zd.d/�Zd0d1�Zd2d3�Z d4d5�Z!d6d7�Z"d8d9�Z#d:d;�Z$d<d=�Z%d>d?�Z&d@S)B�IdleConfTestzTest for idleConfcCs�i|_tjdd�}tdkr(tjjt�}ntjjt	jd�}xD|j
D]:}tjj|d|�}t|d��}|j
�|j|<WdQRXqBWtj|_t�t_dS)NT)�_utest�__main__rz../config-%s.def�r)�
config_stringr�IdleConfr4rMr:�dirname�__file__�abspath�sys�config_typesrN�open�read�_warn�	orig_warnr)�cls�conf�idle_dir�ctyper2�frrr�
setUpClass�szIdleConfTest.setUpClasscCs|jt_dS)N)rcrrb)rdrrr�
tearDownClass�szIdleConfTest.tearDownClassFcCstj|d�S)N)rV)rrZ)r&rVrrr�
new_config�szIdleConfTest.new_configcCsltjdd�}xZ|jD]P}tjd�|j|<|j|j|j|�tjd�|j|<|j|j|j|�qW|S)zbReturn a mocked idleConf

        Both default and user config used the same config-*.def
        T)rVr)	rrZr_r"�
defaultCfgr#rYr9r)r&rergrrr�mock_config�szIdleConfTest.mock_config�winzthis is test for unix systemc:Cs�|jdd�}tjddd��0tjddd��|j|j�d�WdQRXWdQRXtjdd	d��Ftjd
dd��,tjd��|j|j�d
�WdQRXWdQRXWdQRXtjddd��:|jt��$|jt��|j�WdQRXWdQRXWdQRXdS)z,Test to get user config directory under unixT)rVzos.path.expanduserz	/home/foo)�return_valuezos.path.existsz/home/foo/.idlercN�~z	os.getcwdz/home/foo/cpythonzos.mkdirz/home/foo/cpython/.idlerczos.path.joinz/path/not/exists)rkr�patchr$�
GetUserCfgDir�assertRaises�
SystemExit�FileNotFoundError)r&rerrr�test_get_user_cfg_dir_unix�s$
$z'IdleConfTest.test_get_user_cfg_dir_unixzthis is test for Windows systemc:Cs�|jdd�}tjddd��0tjddd��|j|j�d�WdQRXWdQRXtjdd	d��Ftjd
dd��,tjd��|j|j�d
�WdQRXWdQRXWdQRXtjddd��:|jt��$|jt��|j�WdQRXWdQRXWdQRXdS)z/Test to get user config directory under WindowsT)rVzos.path.expanduserzC:\foo)rozos.path.existszC:\foo\.idlercNrpz	os.getcwdzC:\foo\cpythonzos.mkdirzC:\foo\cpython\.idlerczos.path.joinz/path/not/exists)rkrrqr$rrrsrtru)r&rerrr�test_get_user_cfg_dir_windowss$
$z*IdleConfTest.test_get_user_cfg_dir_windowscCs(|jdd�}d}tjjddi��(tjd|d��|j�WdQRXWdQRX|j|jj�|j�|j|j	j�|j�x |jj
�D]}|j|tj
�q�Wx |j	j
�D]}|j|tj�q�Wx2|jj�D]$\}}|j|jtjj|d|��q�Wx4|j	j�D]&\}}|j|jtjj|jd	|��q�WdS)
NT)rVz	/home/foor4Z__foo__zos.path.dirname)roz
config-%s.defz
config-%s.cfg)rkrrq�dictZCreateConfigHandlersr+rlr
r_r�valuesZassertIsInstancerr"r9�itemsr$�filerMr:rNZuserdir)r&rerfZdefault_parserZuser_parserZconfig_typer'rrr�test_create_config_handlerss"z(IdleConfTest.test_create_config_handlerscCs�|jdd�}td�}tj|�|jd<tj|�|jd<|j�|j}||jdj	dd�d�||jdj
d�dg�||jdj	dd�d�||jdj
d�dg�dS)NT)rVzcfgparser.1r0zFoo Barr1)rkrrr"rlr9rZLoadCfgFilesr$r%r*)r&rer2r(rrr�test_load_cfg_files3sz IdleConfTest.test_load_cfg_filescCs>|j�}tjd��"}|j�|j|jt|j��WdQRXdS)Nz&idlelib.config.IdleUserConfParser.Save)rmrrqZSaveUserCfgFilesr$�
call_count�lenr)r&re�mrrr�test_save_user_cfg_filesHsz%IdleConfTest.test_save_user_cfg_filescCs�|j�}|j}||jddd�d�||jddddd�d�tjd��V}||jddd	dd�d�||jddd
�d�||jddd
dd�d�||jd
�WdQRXdS)Nr�EditorWindow�widthZ80r)r�Pzidlelib.config._warnZfont�	NotExistsZNE)r!�)rmr$�	GetOptionrrqr~)r&rer(rbrrr�test_get_optionOszIdleConfTest.test_get_optioncCs2|j�}|jdddd�|j|jddd�d�dS)Nrr<r=r1)rmrAr$r�)r&rerrrrC[szIdleConfTest.test_set_optioncCs�|j�}|j|jdd�ddddddd	d
g�|j|jdd�ddddddd	d
g�|jtj��|jdd�WdQRX|jtj��|jdd
�WdQRXdS)Nr!rZGeneralr�ZPyShell�Indent�Theme�KeysZHistory�	HelpFiles�userZfoobarZ	notexists)rmr+�GetSectionListrsr�InvalidConfigSetZInvalidConfigType)r&rerrr�test_get_section_listas



z"IdleConfTest.test_get_section_listcCs�|j�}|j}||jdd�ddd��||jddd�d�||jddd�d�|jtj��|jddd�WdQRX||jdd	�d
dd��|jddd
d�|jdddd�tjd��||jdd�ddd��WdQRXdS)NzIDLE ClassicZnormalz#000000z#ffffff)Z
foregroundZ
backgroundZfgZbgZfbZcursorZblackr	�Foobarznormal-foregroundz#747474znormal-backgroundz#171717zidlelib.config._warn)	rmr$ZGetHighlightrsrZInvalidFgBgrArrq)r&rer(rrr�test_get_highlightrs

zIdleConfTest.test_get_highlightc
CsL|j�}|j|jdd�|jdd��|jtj��|jdd�WdQRXdS)zXXX: NOT YET DONEr!zIDLE Classicr��badN)rmr$ZGetThemeDictrsrZInvalidTheme)r&rerrr�test_get_theme_dict�s
z IdleConfTest.test_get_theme_dictcCs8|j�}|j|j�|jd��|j|j�|jd��dS)Nr�r�)rmr$ZCurrentTheme�current_colors_and_keys�CurrentKeys)r&rerrr�test_get_current_theme_and_keys�sz,IdleConfTest.test_get_current_theme_and_keyscCs|j�}|j|jd�d�dS)Nr�zIDLE Classic)rmr$r�)r&rerrr�test_current_colors_and_keys�sz)IdleConfTest.test_current_colors_and_keyscCs^tj}|jdd�}dt_|j|j�d�dt_|j|j�d�dt_|j|j�d�|t_dS)	NT)rVZwin32zIDLE Classic Windows�darwinzIDLE Classic OSXz
some-linuxzIDLE Modern Unix)r^�platformrkr$�default_keys)r&�current_platformrerrr�test_default_keys�szIdleConfTest.test_default_keyscCs�tjd�|j}tj}||dd�g�||�dg�||dd�dg�||dd�ddg�||ddd	�ddg�tjd�tjd�dS)
Nzn
            [ZzDummy]
            enable = True
            [DISABLE]
            enable = False
            T)Z
shell_only�ZzDummy)�editor_onlyF)�active_onlyZDISABLE)r�r�)�userextnr#r$r
Z
GetExtensionsrS)r&r(ZiGErrr�test_get_extensions�s
z IdleConfTest.test_get_extensionscCs0|j�}|j|j|jdd��dddddg�dS)Nr!rZAutoCompleteZCodeContextZFormatParagraphZ
ParenMatchr�)rmr+ZRemoveKeyBindNamesr�)r&rerrr�test_remove_key_bind_names�sz'IdleConfTest.test_remove_key_bind_namescCs>tjd�|j}|tjd�d�|tjd�d�tjd�dS)Nz=
            [ZzDummy]
            enable = True
            zz-inr�zz-out)r�r#r$r
ZGetExtnNameForEventrS)r&r(rrr�test_get_extn_name_for_event�sz)IdleConfTest.test_get_extn_name_for_eventcCs0tjd�|jtjd�ddgi�tjd�dS)Nz=
            [ZzDummy]
            enable = True
            r�z<<z-in>>z!<Control-Shift-KeyRelease-Insert>)r�r#r$r
ZGetExtensionKeysrS)r&rrr�test_get_extension_keys�s
z$IdleConfTest.test_get_extension_keyscCsNtjd�|j}tj}||d�i�dgdgd�}||d�|�tjd�dS)Nz=
            [ZzDummy]
            enable = True
            r�z!<Control-Shift-KeyRelease-Insert>z!<Control-Shift-KeyRelease-Delete>)z<<z-in>>z	<<z-out>>r�)r�r#r$r
ZGetExtensionBindingsrS)r&r(ZiGEBZexpectrrr�test_get_extension_bindings�s
z(IdleConfTest.test_get_extension_bindingscCs�|j�}|j}||jdd�ddg�||jdd�ddg�||jdd�d	d
g�||jdd�dg�||jd
d�dg�||jdd�g�||jdd�g�dS)NzIDLE Modern Unixz<<copy>>z<Control-Shift-Key-C>z<Control-Key-Insert>zIDLE Classic Unixz<Alt-Key-w>z<Meta-Key-w>zIDLE Classic Windowsz<Control-Key-c>z<Control-Key-C>zIDLE Classic Macz<Command-Key-c>zIDLE Classic OSXz
NOT EXISTS)rmr$Z
GetKeyBinding)r&rer(rrr�test_get_keybinding�s


z IdleConfTest.test_get_keybindingcCs8tj}|j�}dt_|j|j�|j|j���|t_dS)Nz
some-linux)r^r�rmr$ZGetCurrentKeySet�	GetKeySetr�)r&r�rerrr�test_get_current_keyset�s
	z$IdleConfTest.test_get_current_keysetcCsj|j�}|jdjd�|jdjd�|jdjddd�|jdjddd�|j|jd�d	d
�dS)Nrr�ZFoobar_cfgBindings�enable�TrueZnewfooz<Key-F3>zIDLE Modern Unixz
<<newfoo>>r)rmrlr?�setr$r�)r&rerrr�test_get_keyset
szIdleConfTest.test_get_keysetcCsL|j�}|j|jd��|j|jd��|j|jd��|j|jd��dS)N�copyZcutzdel-word-rightz
not-exists)rmr@Z
IsCoreBindingrB)r&rerrr�test_is_core_bindings
z!IdleConfTest.test_is_core_bindingcCs|j�}|j|jd�g�|j|jd�g�|jtj��|j|jd�g�WdQRX|j|j�|jd�|jd��|jdj	ddd�|jdj	ddd	�|jdj	dd
d�|jdj	ddd
�|j|jd�dddg�|j|j�|jd�|jd��dS)Nr!r�r�rr��4zPython;https://python.org�3zPython:https://python.org�2z/Pillow;https://pillow.readthedocs.io/en/latest/�1z/IDLE;C:/Programs/Python36/Lib/idlelib/help.html�IDLE�*C:/Programs/Python36/Lib/idlelib/help.html�Pillow�(https://pillow.readthedocs.io/en/latest/�Python�https://python.org)r�r�r�)r�r�r�)r�r�r�)
rmr$ZGetExtraHelpSourceListrsrr�r+ZGetAllExtraHelpSourcesListrrA)r&rerrr�test_extra_help_source_list s&z(IdleConfTest.test_extra_help_source_listcCs�ddlm}ddlm}ddlm}|j�}|d�|�}|j�|j|dd|d��}|j	|j
|d	d
�|d|ddkr|d
n|d|df�|j�~dS)Nr)�requires)�Tk)�FontZguiZTkFixedFontT)rGrP�rootrr�Zfamily�sizerZweight)�test.supportr�Ztkinterr�Ztkinter.fontr�rmZwithdrawZactualr$ZGetFontZdestroy)r&r�r�r�rer�rhrrr�
test_get_font;s(zIdleConfTest.test_get_fontcCs�|j�}|j}||j�ddg�||j�dddg�||j�ddg�||jd�dd	d
g�||jd�ddg�||jd
�dddg�||jd�dddg�dS)Nz<<center-insert>>z<Control-l>z<<copy>>z<Control-c>z<Control-C>z<<history-next>>z<Alt-n>zIDLE Classic Windowsz<Control-Key-l>z<Control-Key-L>zIDLE Classic OSXz<Command-Key-c>zIDLE Classic Unixz<Alt-Key-n>z<Meta-Key-n>zIDLE Modern Unix)rmr$ZGetCoreKeys)r&rer(rrr�test_get_core_keysNs

zIdleConfTest.test_get_core_keysN)F)'r4r5r6r7�classmethodrirjrkrm�unittestZskipIfr^r��
startswithrvrwr|r}r�r�rCr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rrrrrU�s<



	rUc@sReZdZdZejZdZej�Zdd�Z	dd�Z
dd�Zd	d
�Zdd�Z
d
d�ZdS)�CurrentColorKeysTesta Test colorkeys function with user config [Theme] and [Keys] patterns.

        colorkeys = config.IdleConf.current_colors_and_keys
        Test all patterns written by IDLE and some errors
        Item 'default' should really be 'builtin' (versus 'custom).
    zIDLE ClassiccCs~|j|jd�|j�tjd�|j|jd�|j�dtdd<|j|jd�d�dtdd<|j|jd�|j�tjd�dS)Nr�z<
            [Theme]
            default = True
            zIDLE NewrGznon-existent)r$�	colorkeys�
default_theme�usermainr#rS)r&rrr�test_old_builtin_themeisz+CurrentColorKeysTest.test_old_builtin_themecCshtjd�|j|jd�d�dtdd<|j|jd�d�dtdd<|j|jd�|j�tjd�dS)NzZ
            [Theme]
            default = True
            name2 = IDLE Dark
            r�z	IDLE DarkzIDLE NewrGznon-existent�name2)r�r#r$r�r�rS)r&rrr�test_new_builtin_theme{sz+CurrentColorKeysTest.test_new_builtin_themecCsptjd�|j|jd�|j�tjd�|j|jd�d�dtdd<|j|jd�d�tjd�tjd�dS)Nz\
            [Theme]
            default = False
            name = Custom Dark
            r�z[Custom Dark]
a=bzCustom Darkznon-existentr�)r�r#r$r�r��userhighrS)r&rrr�test_user_override_theme�s

z-CurrentColorKeysTest.test_user_override_themecCs^|j|jd�|j�tjd�|j|jd�d�dtdd<|j|jd�|j�tjd�dS)Nr�z`
            [Keys]
            default = True
            name = IDLE Classic Unix
            zIDLE Classic Unixznon-existentrG)r$r�r�r�r#rS)r&rrr�test_old_builtin_keys�sz*CurrentColorKeysTest.test_old_builtin_keyscCshtjd�|j|jd�d�dtdd<|j|jd�d�dtdd<|j|jd�|j�tjd�dS)Nz`
            [Keys]
            default = True
            name2 = IDLE Modern Unix
            r�zIDLE Modern UnixzIDLE Classic UnixrGznon-existentr�)r�r#r$r�r�rS)r&rrr�test_new_builtin_keys�sz*CurrentColorKeysTest.test_new_builtin_keyscCsptjd�|j|jd�|j�tjd�|j|jd�d�dtdd<|j|jd�d�tjd�tjd�dS)Nz[
            [Keys]
            default = False
            name = Custom Keys
            r�z[Custom Keys]
a=bzCustom Keysznon-existentr�)r�r#r$r�r��userkeysrS)r&rrr�test_user_override_keys�s

z,CurrentColorKeysTest.test_user_override_keysN)r4r5r6r7r
r�r�r�r�r�r�r�r�r�r�rrrrr�^sr�c@s�eZdZiiiid�Zdd�Zdddiiddd	iid
ddiiid�Zd
d�Zdd�Zdd�Zdd�Z	dd�Z
dd�Zdd�Zdd�Z
dd�ZdS) �ChangesTest)rr	r
rcCs:|j}|jdddd�|jdddd�|jd	d
dd�|S)
Nr�Msec�mitem�mvalr	�Hsec�hitem�hvalr
�Ksec�kitem�kval)�changes�
add_option)r&r�rrr�load�s
zChangesTest.loadr�r�r�r�r�r�r�r�r�cCstj�|_dS)N)rZ
ConfigChangesr�)r&rrr�setUp�szChangesTest.setUpcCs|j|j|j�dS)N)r$r��empty)r&rrr�	test_init�szChangesTest.test_initcCs8|j�}|j||j�|jdddd�|j||j�dS)Nrr�r�r�)r�r$�loadedr�)r&r�rrr�test_add_option�szChangesTest.test_add_optioncCs�|jj}|j|dddd��|j|dddd��|jtddd�|j|dddd��|jtddd�|j|dddd��|jtjdd��tjd�dS)Nrr�Zwhat�0z
use-spacesr�)r��save_optionr@rBr$r��
has_optionrS)r&r�rrr�test_save_option�szChangesTest.test_save_optioncCs�|j�}|j|j��|jtddd�|jtddd�|jtddd	�|jd
ddd�|j|j��tj	d�tj	d�tj	d�dS)Nr�r�r�r�r�r�r�r�r�r)
r�r@�save_allr$r�r�r�r�rBrS)r&r�rrr�test_save_added�s

zChangesTest.test_save_addedcCsV|j}|jdddd�|jdddd�|j�|jtjdd��|jtjdd��dS)Nrr�r�ZidledocZELDIZcodeldi)r�r�r�r�rBr�r�r@)r&r�rrr�test_save_helpszChangesTest.test_save_helpcCs|j}|jdddd�dS)Nrr�z
use-spacesr�)r�r�)r&r�rrr�test_save_default
szChangesTest.test_save_defaultc
Cs�|j�}|jdd�|j||j�x\d
D]T\}}t|j|dd�|j||�|jt��|||t||WdQRXq(WdS)NrZfaker�r
r�rG�value�rr��r
r�)r�r�)r�Zdelete_sectionr$r�rrArs�KeyError)r&r�ZcfgtypeZsectionrrr�test_delete_sectionszChangesTest.test_delete_sectioncCs"|j�}|j�|j||j�dS)N)r��clearr$r�)r&r�rrr�
test_clearszChangesTest.test_clearN)r4r5r6r�r�r�r�r�r�r�r�r�r�r�r�rrrrr��s


	r�c@seZdZdd�ZdS)�WarningTestcCs�|j}t�t_t��}tjdd�WdQRX|tjdh�||j�d�t��}tjdd�WdQRX||j�d�t��}tjdd�WdQRX|tjd	d
h�||j�d�dS)N�warning�key�
r�warn2�yek)r�r�zwarning
)r�r�)r�r�zwarn2
)r$r�rZ_warnedrrb�getvalue)r&ZEqual�stderrrrr�	test_warn%szWarningTest.test_warnN)r4r5r6r�rrrrr�#sr�rW�)�	verbosity)!r7rrr^rMrKr�rrr�rZidlelib.idle_test.mock_idlerr
rrrr9r�r�r�r�rrZTestCaserr8rUr�r�r�r4rrrrr�<module>s:;` oV


?>