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/source/__pycache__/test_path_hook.cpython-37.pyc
B

��g��@sRddlmZe�d�ZddlZGdd�d�Zejeed�\ZZe	dkrNe�
�dS)	�)�utilzimportlib.machinery�Nc@s8eZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�ZdS)
�PathHookTestzTest the path hook for source.cCs|jj�|jj|jjf�S)N)�	machinery�
FileFinder�	path_hook�SourceFileLoader�SOURCE_SUFFIXES)�self�r�E/usr/local/lib/python3.7/test/test_importlib/source/test_path_hook.pyrszPathHookTest.path_hookc	Cs6t�d��"}|�t|��|d�d��WdQRXdS)N�dummyz.root�	find_spec)r�create_modules�
assertTrue�hasattrr)r
�mappingrrr�test_successszPathHookTest.test_successc	Cs6t�d��"}|�t|��|d�d��WdQRXdS)Nr
z.root�find_module)rrrrr)r
rrrr�test_success_legacysz PathHookTest.test_success_legacycCs|�t|��d�d��dS)N�r)rrr)r
rrr�test_empty_stringszPathHookTest.test_empty_stringcCs|�t|��d�d��dS)Nrr)rrr)r
rrr�test_empty_string_legacysz%PathHookTest.test_empty_string_legacyN)	�__name__�
__module__�__qualname__�__doc__rrrrrrrrrrsr)r�__main__)rrZimport_importlibrZunittestrZ	test_bothZFrozen_PathHookTestZSource_PathHooktestr�mainrrrr�<module>s