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

�i��@s�ddlmZddlmZe�d�ZddlZddlZddlZe�ej	j
dud�Gdd�dej��Zej
eed	�\ZZe�ej	j
dud�Gd
d�dej��Zej
eed	�\ZZedkr_e��dSdS)
�)�abc)�utilzimportlib.machinery�Nzno reasonable builtin modulec@s8eZdZdZdd�ZdZdZdZdZdd�Z	dd�Z
dS)	�
FindSpecTestsz&Test find_spec() for built-in modules.cCs^t�tjj��|jj�tjj�}|�|�|�|j	d�Wd�dS1s(wYdS)Nzbuilt-in)
r�uncache�BUILTINS�	good_name�	machinery�BuiltinImporter�	find_spec�
assertTrueZassertEqual�origin��self�found�r�D/usr/local/lib/python3.10/test/test_importlib/builtin/test_finder.py�test_modules

"�zFindSpecTests.test_moduleNcCs.d}|tjvs	J�|jj�|�}|�|�dS)N�	importlib)�sys�builtin_module_namesr	r
r�assertIsNone)r�name�specrrr�test_failure#szFindSpecTests.test_failurecCsTt�tjj��|jj�tjjdg�}|�|�Wd�dS1s#wYdS)N�pkg)rrrrr	r
rr)rrrrr�test_ignore_path)s�"�zFindSpecTests.test_ignore_path)�__name__�
__module__�__qualname__�__doc__r�test_package�test_module_in_package�test_package_in_package�test_package_over_modulerrrrrrrsr)r	c@s8eZdZdZdd�ZdZZZdZdd�Z	dd�Z
dS)	�FinderTestsz(Test find_module() for built-in modules.c	Cs�t�tjj��9t���t�dt�|jj	�
tjj�}Wd�n1s&wY|�|�|�t|d��Wd�dS1sCwYdS)N�ignore�load_module)
rrrr�warnings�catch_warnings�simplefilter�DeprecationWarningr	r
�find_moduler�hasattrrrrrr;s
�
"�zFinderTests.test_moduleNcCs^dtjvsJ�t���t�dt�|jj�d�}Wd�n1s#wY|�	|�dS)Nrr&)
rrr(r)r*r+r	r
r,r�r�loaderrrrrJs
�zFinderTests.test_failurec	Cs�t�tjj��3t���t�dt�|jj	�
tjjdg�}Wd�n1s(wY|�|�Wd�dS1s=wYdS)Nr&r)rrrrr(r)r*r+r	r
r,rr.rrrrQs
��"�zFinderTests.test_ignore_path)rrrr rr!r#r$r"rrrrrrr%6s
r%�__main__)�rrZimport_importlibr	rZunittestr(ZskipIfrrr%rZ	test_bothZFrozen_FindSpecTestsZSource_FindSpecTestsZFrozen_FinderTestsZSource_FinderTestsr�mainrrrr�<module>s&
'�'��