Sindbad~EG File Manager
�
)Μg � �$ � d dl mZ ej d� Zd dlZ ej
ej du xs ej j du d� G d� d� � Z ej ee�� \ Z
Zedk( r ej � yy) � )�utilzimportlib.machineryNz:dynamic loading not supported or test module not availablec � � e Zd ZdZd� Zd� Zy)�
PathHookTestsz)Test the path hook for extension modules.c � � | j j j | j j | j j f� |� S )N)� machinery�
FileFinder� path_hook�ExtensionFileLoader�EXTENSION_SUFFIXES)�self�entrys �I/usr/local/lib/python3.12/test/test_importlib/extension/test_path_hook.py�hookzPathHookTests.hook sJ � �5�t�~�~�(�(�2�2����3�3����2�2�4�5�5:�<� <� c � � | j t | j t j j
� d� � y )N� find_spec)�
assertTrue�hasattrr r �
EXTENSIONS�path)r s r �test_successzPathHookTests.test_success s* � �
����� � �$�/�/�*>�*>� ?��M�Nr N)�__name__�
__module__�__qualname__�__doc__r r � r r r r s � � 4�<�
Or r )r �__main__)�test.test_importlibr �import_importlibr �unittest�skipIfr �filenamer � test_both�Frozen_PathHooksTests�Source_PathHooksTestsr �mainr r r �<module>r'