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.10/test/__pycache__/test___all__.cpython-310.pyc
o

�i(�@s�ddlZddlmZddlmZddlZddlZejddd�r$e�d��Gdd�de	�Z
Gd	d
�d
e	�ZGdd�dej�Z
ed
krGe��dSdS)�N)�support)�warnings_helperT)�addressZmemoryz>workaround ASAN build issues on loading tests like tk or cryptc@�eZdZdS)�NoAllN��__name__�
__module__�__qualname__�rr�./usr/local/lib/python3.10/test/test___all__.pyr�rc@r)�FailedImportNrrrrrrr
rc@s$eZdZdd�Zdd�Zdd�ZdS)�AllTestcCs�i}tjdtfdtfdtfdd��z	td||�Wnt|��Wd�n1s-wYttj	|d�s>t
|��i}|j|d���tjdtfdtfdd��gz	td||�Wnty{}z|�
d	�||jj|��WYd}~nd}~wwd
|vr�|d
=d|vr�|d=d|vr�|d=t|�}tj	|j}t|�}|�||d
�|��|�||d
�|��Wd�n1s�wYWd�dSWd�dS1s�wYdS)Nz.* (module|package)�T)�quietz	import %s�__all__)�modulezfrom %s import *z__all__ failure in {}: {}: {}�__builtins__�__annotations__Z__warningregistry__zin module {})rZcheck_warnings�DeprecationWarning�PendingDeprecationWarning�ResourceWarning�execr�hasattr�sys�modulesrZsubTest�	ExceptionZfail�format�	__class__r�setrZassertCountEqualZassertEqual)�self�modname�names�e�keysZall_listZall_setrrr�	check_allsZ����
�����"�zAllTest.check_allccs��tt�|��D]M}tj�||�}tj�|�r@tj�|d�}tj�|�r?|||fV|�|||d�D]	\}}||fVq5q|�d�rI|dkrJq|||dd�fVqdS)Nz__init__.py�.z.py���)	�sorted�os�listdir�path�join�isdir�exists�walk_modules�endswith)r!Zbasedir�modpath�fnr,Zpkg_init�p�mrrrr0@s��zAllTest.walk_modulesc	Cs4tdg�}tj�d�sddl}g}g}tj�tj�t��}|�	|d�D]e\}}|}d}	|r=||vr4d}	n	|�
d�d}|s-|	r@q#tjrGt
|�z&t|d��}
d	|
��vrXt|��|�|�Wd�n1sgwYWq#ty{|�|�Yq#ty�|�|�Yq#wtjr�t
d
|�t
d|�dSdS)NZ
__future__�javarrFTr'�rbs__all__z8Following modules have no __all__ and have been ignored:z(Following modules failed to be imported:)r r�platform�
startswith�_socketr*r,�dirname�__file__r0�
rpartitionr�verbose�print�open�readrr&�appendr)r!Zdenylistr:ZignoredZfailed_importsZlib_dirr,r"r5Zdenied�frrr�test_allNsN�������zAllTest.test_allN)rr	r
r&r0rDrrrrrs(r�__main__)Zunittest�testrZtest.supportrr*rZcheck_sanitizerZSkipTest�RuntimeErrorrrZTestCaserr�mainrrrr�<module>s
e�