Your IP : 216.73.216.213


Current Path : /opt/alt/python37/lib64/python3.7/tkinter/test/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib64/python3.7/tkinter/test/__pycache__/runtktests.cpython-37.opt-2.pyc

B

YI~d��@shddlZddlZddlZej�ej�e��Zdd�Z	eddfdd�Z
d
dd�Zed	krdej
je��dS)�NcCs$xt�|�D]}|dkrdSqWdS)N)z__init__.pyz__init__.pycTF)�os�listdir)�path�name�r�</opt/alt/python37/lib64/python3.7/tkinter/test/runtktests.py�
is_packagesrTc	
#s�d�x�t�|�D]�\}}}x&t|�D]}|ddkr$|�|�q$Wt|�r|r|t|�ttj�d��dd�}|r~||kr~qt�fdd�|�}xT|D]L}y(t	�
d||dt���fd�VWq�tjj
k
r�|r܂Yq�Xq�WqWdS)	Nz.pyr�.�/cs|�d�o|���S)NZtest_)�
startswith�endswith)�x)�py_extrr�<lambda>)�z#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�dirpathZdirnames�	filenames�dirnameZpkg_namerr)rr�get_tests_moduless("

r!ccsdg}|r|�d�|r |�d�x>t||d�D].}x(|D] }xt||d�D]
}|VqJWq8Wq.WdS)NZtests_noguiZ	tests_gui)rrr)�appendr!�getattr)�textrrZattrs�module�attrrrrr�	get_tests5s


r'�__main__)TTN)rrZtest.supportrr�abspathr �__file__Z
this_dir_pathrr!r'�__name__rZrun_unittestrrrr�<module>	s