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/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]


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

>��gw�@sjddlZddlmZddlZddlZGdd�de�ZGdd�de�ZGdd�dej�Z	e
d	krfe��dS)
�N)�supportc@seZdZdS)�NoAllN��__name__�
__module__�__qualname__�rr�0/opt/cppython/lib/python3.8/test/test___all__.pyrsrc@seZdZdS)�FailedImportNrrrrr	r

sr
c@s$eZdZdd�Zdd�Zdd�ZdS)�AllTestcCsji}tjdtfdtfdd��.ztd||�Wnt|��YnXW5QRXttj|d�sht	|��i}|j
|d���tjdtfdtfdd���ztd||�Wn:tk
r�}z|�d	�
||jj|��W5d}~XYnXd
|kr�|d
=d|kr�|d=d|k�r|d=t|�}tj|j}t|�}|�||d
�
|��|�||d
�
|��W5QRXW5QRXdS)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�ResourceWarning�execr
�hasattr�sys�modulesrZsubTest�	ExceptionZfail�format�	__class__r�setrZassertCountEqualZassertEqual)�self�modname�names�e�keysZall_listZall_setrrr	�	check_allsL���
zAllTest.check_allccs�tt�|��D]�}tj�||�}tj�|�r~tj�|d�}tj�|�r|||fV|�|||d�D]\}}||fVqhq|�d�r|dkr�q|||dd�fVqdS)Nz__init__.py�.z.py���)	�sorted�os�listdir�path�join�isdir�exists�walk_modules�endswith)rZbasedir�modpath�fnr'Zpkg_init�p�mrrr	r+7szAllTest.walk_modulesc
Cs"tdg�}tj�d�sddl}g}g}tj�tj�t��}|�	|d�D]�\}}|}d}	|rx||krhd}	qx|�
d�d}qV|	r~qFtjr�t
|�z8t|d��$}
d	|
��kr�t|��|�|�W5QRXWqFtk
r�|�|�YqFtk
r�|�|�YqFXqFtj�rt
d
|�t
d|�dS)NZ
__future__�javarrFTr"�rbs__all__z8Following modules have no __all__ and have been ignored:z(Following modules failed to be imported:)rr�platform�
startswith�_socketr%r'�dirname�__file__r+�
rpartitionr�verbose�print�open�readrr!�appendr
)rZ	blacklistr5ZignoredZfailed_importsZlib_dirr'rr0Zblacklisted�frrr	�test_allEsD��zAllTest.test_allN)rrrr!r+r?rrrr	rs'r�__main__)Zunittest�testrr%r�RuntimeErrorrr
ZTestCaserr�mainrrrr	�<module>sd

F1le Man4ger