| Server IP : 118.27.122.248 / Your IP : 216.73.217.103 Web Server : Apache System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64 User : c9415830 ( 11735) PHP Version : 8.4.17 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python36/lib64/python3.6/tkinter/test/__pycache__/ |
Upload File : |
3
�w2_� � @ sl d Z ddlZddlZddlZejjejje��Z dd� Z
e ddfdd�Zddd �Ze
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.
� Nc C s$ xt j| �D ]}|dkrdS qW dS )N�__init__.py�__init__.pycTF)r r )�os�listdir)�path�name� r �</opt/alt/python36/lib64/python3.6/tkinter/test/runtktests.py�
is_package s r
Tc # s� d� x�t j| �D ]�\}}}x&t|�D ]}|d dkr$|j|� q$W t|�r|r|t| �tt j� d� jdd�}|r~||kr~qt� fdd�|�}xT|D ]L}y(t j
d||dt� � � f d �V W q� tjj
k
r� |r܂ Y q�X q�W qW dS )
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�/c s | j d�o| j� �S )NZtest_)�
startswith�endswith)�x)�py_extr r �<lambda>) s z#get_tests_modules.<locals>.<lambda>z.%s.%sztkinter.test)r �walk�list�remover
�len�sep�replace�filter� importlib�
import_module�test�supportZResourceDenied) Zbasepath�gui�packages�dirpathZdirnames� filenames�dirnameZpkg_namer r )r r �get_tests_modules s( "
r"