Server : LiteSpeed
System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
User : nandedex ( 1060)
PHP Version : 8.1.33
Disable Function : NONE
Directory :  /opt/cppython/lib/python3.8/tkinter/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]


Current File : //opt/cppython/lib/python3.8/tkinter/test/__pycache__/runtktests.cpython-38.pyc
U

>��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"t�|�D]}|dkr
dSq
dS)N)z__init__.pyz__init__.pycTF)�os�listdir)�path�name�r�6/opt/cppython/lib/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)
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�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�dirpath�dirnames�	filenames�dirnameZpkg_namerrrr�get_tests_moduless,"
��
r"ccsXg}|r|�d�|r |�d�t||d�D]&}|D]}t||d�D]
}|VqDq4q,dS)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 


F1le Man4ger