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/test_importlib/frozen/__pycache__/test_finder.cpython-310.pyc
o

�i��@s�ddlmZddlmZe�d�ZddlZddlZGdd�dej�Zej	eed�\Z
ZGd	d
�d
ej�Zej	eed�\ZZ
edkrGe��dSdS)�)�abc)�utilzimportlib.machinery�Nc@�BeZdZdZd
dd�Zdd�Zdd�Zd	d
�ZdZdZ	dd�Z
dS)�
FindSpecTests�Test finding frozen modules.NcCs|jj}|�||�S�N)�	machinery�FrozenImporter�	find_spec��self�name�path�finder�r�C/usr/local/lib/python3.10/test/test_importlib/frozen/test_finder.py�findszFindSpecTests.findcCs d}|�|�}|�|jd�dS)N�	__hello__�frozen)rZassertEqual�origin)r
r�specrrr�test_modules
zFindSpecTests.test_modulecC�|�d�}|�|�dS)N�
__phello__�rZassertIsNotNone�r
rrrr�test_package�
zFindSpecTests.test_packagecCs|�ddg�}|�|�dS)N�__phello__.spamrrrrrr�test_module_in_packagesz$FindSpecTests.test_module_in_packagecCr�Nz
<not real>�rZassertIsNonerrrr�test_failure%rzFindSpecTests.test_failurer��__name__�
__module__�__qualname__�__doc__rrrr Ztest_package_in_packageZtest_package_over_moduler#rrrrr
s
r)r	c@r)�FinderTestsrNcCsL|jj}t���t�dt�|�||�Wd�S1swYdS)N�ignore)r	r
�warnings�catch_warnings�simplefilter�DeprecationWarning�find_modulerrrrr3s


$�zFinderTests.findcCs"d}|�|�}|�t|d��dS)Nr�load_module�rZ
assertTrue�hasattr)r
r�loaderrrrr9s
zFinderTests.test_modulecCs|�d�}|�t|d��dS)Nrr0r1�r
r3rrrr>s
zFinderTests.test_packagecCs"|�ddg�}|�t|d��dS)Nrrr0r1r4rrrr Bsz"FinderTests.test_module_in_packagecCrr!r"r4rrrr#LrzFinderTests.test_failurerr$rrrrr)/s
r)�__main__)�rrZimport_importlibr	Zunittestr+r)rZ	test_bothZFrozen_FindSpecTestsZSource_FindSpecTestsZFrozen_FinderTestsZSource_FinderTestsr%�mainrrrr�<module>s 
"�$��