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.7/test/test_importlib/frozen/__pycache__/test_finder.cpython-37.opt-1.pyc
B

��g9�@s�ddlmZddlmZe�d�ZddlZGdd�dej�Zejeed�\Z	Z
Gd	d
�d
ej�Zejeed�\ZZe
dkr�e��dS)�)�abc)�utilzimportlib.machinery�Nc@sBeZdZdZd
dd�Zdd�Zdd�Zd	d
�ZdZdZ	dd�Z
dS)�
FindSpecTestszTest finding frozen modules.NcCs|jj}|�||�S)N)�	machinery�FrozenImporter�	find_spec)�self�name�path�finder�r
�B/usr/local/lib/python3.7/test/test_importlib/frozen/test_finder.py�find
szFindSpecTests.findcCs d}|�|�}|�|jd�dS)N�	__hello__�frozen)rZassertEqual�origin)r	r
�specr
r
r�test_modules
zFindSpecTests.test_modulecCs|�d�}|�|�dS)N�
__phello__)r�assertIsNotNone)r	rr
r
r�test_packages
zFindSpecTests.test_packagecCs|�ddg�}|�|�dS)Nz__phello__.spamr)rr)r	rr
r
r�test_module_in_packagesz$FindSpecTests.test_module_in_packagecCs|�d�}|�|�dS)Nz
<not real>)r�assertIsNone)r	rr
r
r�test_failure$s
zFindSpecTests.test_failure)N)�__name__�
__module__�__qualname__�__doc__rrrr�test_package_in_package�test_package_over_modulerr
r
r
rr	s
r)rc@sBeZdZdZd
dd�Zdd�Zdd�Zd	d
�ZdZdZ	dd�Z
dS)�FinderTestszTest finding frozen modules.NcCs|jj}|�||�S)N)rr�find_module)r	r
rrr
r
rr2szFinderTests.findcCs"d}|�|�}|�t|d��dS)Nr�load_module)r�
assertTrue�hasattr)r	r
�loaderr
r
rr6s
zFinderTests.test_modulecCs|�d�}|�t|d��dS)Nrr#)rr$r%)r	r&r
r
rr;s
zFinderTests.test_packagecCs"|�ddg�}|�t|d��dS)Nz__phello__.spamrr#)rr$r%)r	r&r
r
rr?sz"FinderTests.test_module_in_packagecCs|�d�}|�|�dS)Nz
<not real>)rr)r	r&r
r
rrIs
zFinderTests.test_failure)N)rrrrrrrrrr rr
r
r
rr!.s
r!�__main__)�rrZimport_importlibrZunittestr!rZ	test_bothZFrozen_FindSpecTestsZSource_FindSpecTestsZFrozen_FinderTestsZSource_FinderTestsr�mainr
r
r
r�<module>s
""