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

��gK�@s�ddlmZddlmZe�d�ZddlZddlZe�ejj	dkd�Gdd�dej
��Zejeed	�\Z
Ze�ejj	dkd�Gd
d�dej
��Z
eje
ed	�\ZZedkr�e��dS)
�)�abc)�utilzimportlib.machinery�Nzno reasonable builtin modulec@s8eZdZdZdd�ZdZdZdZdZdd�Z	dd�Z
dS)	�
FindSpecTestsz&Test find_spec() for built-in modules.c	CsHt�tjj��0|jj�tjj�}|�|�|�|j	d�WdQRXdS)Nzbuilt-in)
r�uncache�BUILTINS�	good_name�	machinery�BuiltinImporter�	find_spec�
assertTrueZassertEqual�origin)�self�found�r�C/usr/local/lib/python3.7/test/test_importlib/builtin/test_finder.py�test_modules
zFindSpecTests.test_moduleNcCs d}|jj�|�}|�|�dS)N�	importlib)r	r
r�assertIsNone)r�name�specrrr�test_failure"szFindSpecTests.test_failurec	Cs>t�tjj��&|jj�tjjdg�}|�|�WdQRXdS)N�pkg)rrrrr	r
rr)rrrrr�test_ignore_path(szFindSpecTests.test_ignore_path)�__name__�
__module__�__qualname__�__doc__r�test_package�test_module_in_package�test_package_in_package�test_package_over_modulerrrrrrr
sr)r	c@s8eZdZdZdd�ZdZZZdZdd�Z	dd�Z
dS)	�FinderTestsz(Test find_module() for built-in modules.c	CsJt�tjj��2|jj�tjj�}|�|�|�t|d��WdQRXdS)N�load_module)	rrrrr	r
�find_moduler�hasattr)rrrrrr:s
zFinderTests.test_moduleNcCs|jj�d�}|�|�dS)Nr)r	r
r$r)r�loaderrrrrGszFinderTests.test_failurec	Cs>t�tjj��&|jj�tjjdg�}|�|�WdQRXdS)Nr)rrrrr	r
r$r)rr&rrrrLszFinderTests.test_ignore_path)rrrrrrr r!rrrrrrrr"5sr"�__main__)�rrZimport_importlibr	�sysZunittestZskipIfrrr"rZ	test_bothZFrozen_FindSpecTestsZSource_FindSpecTestsZFrozen_FinderTestsZSource_FinderTestsr�mainrrrr�<module>s

'