Your IP : 216.73.217.32


Current Path : /opt/alt/python35/lib64/python3.5/tkinter/test/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/tkinter/test/__pycache__/runtktests.cpython-35.opt-2.pyc



���]��@s�ddlZddlZddlZddlZddlZejjejje	��Z
dd�Ze
dddd�Zddddd�Z
ed	kr�ejje
��dS)
�NcCs.x'tj|�D]}|dkrdSqWdS)N�__init__.py�__init__.pycTF)rr)�os�listdir)�path�name�r�//opt/alt/python35/lib64/python3.5/runtktests.py�
is_packagesr
Tc	#s7d�x*tj|�D]\}}}x1t|�D]#}|ddkr2|j|�q2Wt|�r|r|t|�ttj�d�jdd�}|r�||kr�qt�fdd�|�}xb|D]Z}y0t	j
d||dt���fd�VWq�tjj
k
r*|r&�Yq�Xq�WqWdS)	Nz.pyr�.�/cs|jd�o|j��S)NZtest_)�
startswith�endswith)�x)�py_extrr	�<lambda>+sz#get_tests_modules.<locals>.<lambda>z.%s.%sztkinter.test)r�walk�list�remover
�len�sep�replace�filter�	importlib�
import_module�test�supportZResourceDenied)	Zbasepath�gui�packages�dirpath�dirnames�	filenames�dirnameZpkg_namerr)rr	�get_tests_moduless(/	
r#ccs�g}|r|jd�|r,|jd�xPtd|d|�D]9}x0|D](}xt||f�D]}|VqhWqOWqBWdS)NZtests_noguiZ	tests_guirr)�appendr#�getattr)�textrrZattrs�module�attrrrrr	�	get_tests7s


r)�__main__)r�sysZunittestrZtest.supportrr�abspathr"�__file__Z
this_dir_pathr
r#r)�__name__rZrun_unittestrrrr	�<module>	s