Your IP : 216.73.216.213


Current Path : /opt/alt/python38/lib64/python3.8/tkinter/test/__pycache__/
Upload File :
Current File : //opt/alt/python38/lib64/python3.8/tkinter/test/__pycache__/runtktests.cpython-38.opt-2.pyc

U

i�f��@shddlZddlZddlZej�ej�e��Zdd�Z	eddfdd�Z
d
dd�Zed	krdej
je��dS)�NcCs"t�|�D]}|dkr
dSq
dS)N)z__init__.pyz__init__.pycTF)�os�listdir)�path�name�r�</opt/alt/python38/lib64/python3.8/tkinter/test/runtktests.py�
is_packagesrTc	
#s�d�t�|�D]�\}}}t|�D]}|ddkr |�|�q t|�r|r|t|�ttj�d��dd�}|rx||krxqt�fdd�|�}|D]L}z(t	�
d||dt���fd�VWq�tjj
k
r�|rԂYq�Xq�qdS)	Nz.pyr�.�/cs|�d�o|���S)NZtest_)�
startswith�endswith)�x�Zpy_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_namerrrr�get_tests_moduless,"
��
r!ccsXg}|r|�d�|r |�d�t||d�D]&}|D]}t||d�D]
}|VqDq4q,dS)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