Your IP : 216.73.216.213


Current Path : /opt/alt/python36/lib64/python3.6/tkinter/test/__pycache__/
Upload File :
Current File : //opt/alt/python36/lib64/python3.6/tkinter/test/__pycache__/runtktests.cpython-36.opt-2.pyc

3

��2a��@shddlZddlZddlZejjejje��Zdd�Z	eddfdd�Z
d
dd�Zed	krdej
je��dS)�NcCs$xtj|�D]}|dkrdSqWdS)N�__init__.py�__init__.pycTF)rr)�os�listdir)�path�name�r�//opt/alt/python36/lib64/python3.6/runtktests.py�
is_packagesr
Tc	#s�d�x�tj|�D]�\}}}x&t|�D]}|ddkr$|j|�q$Wt|�r|r|t|�ttj�d�jdd�}|r~||kr~qt�fdd�|�}xT|D]L}y(t	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�dirpathZdirnames�	filenames�dirnameZpkg_namerr)rr	�get_tests_moduless("

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


r(�__main__)TTN)rrZtest.supportrr�abspathr!�__file__Z
this_dir_pathr
r"r(�__name__rZrun_unittestrrrr	�<module>	s