HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.7/tkinter/test/__pycache__/runtktests.cpython-37.opt-1.pyc
B

��g��@sldZddlZddlZddlZej�ej�e��Z	dd�Z
e	ddfdd�Zddd	�Ze
d
krhejje��dS)z�
Use this module to get and run all tk tests.

tkinter tests should live in a package inside the directory where this file
lives, like test_tkinter.
Extensions also should live in packages following the same rule as above.
�NcCs$xt�|�D]}|dkrdSqWdS)N)z__init__.pyz__init__.pycTF)�os�listdir)�path�name�r�3/usr/local/lib/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)
z�This will import and yield modules whose names start with test_
    and are inside packages found in the path starting at basepath.

    If packages is specified it should contain package names that
    want their tests collected.
    z.pyr�.N�/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)z�Yield all the tests in the modules found by get_tests_modules.

    If nogui is True, only tests that do not require a GUI will be
    returned.Ztests_noguiZ	tests_gui)rrrN)�appendr!�getattr)�textrrZattrs�module�attrrrrr�	get_tests5s


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