a
    "h                     @   s4   d dl Z G dd de jdZG dd de jdZdS )    Nc                   @   sd   e Zd ZdZejdd Zejdd Zejdd Zejdd	 Z	ejd
d Z
ejdd ZdS )FinderTestsz!Basic tests for a finder to pass.c                 C   s   d S N selfr   r   ?/opt/python-3.9.21/usr/lib/python3.9/test/test_importlib/abc.pytest_module   s    zFinderTests.test_modulec                 C   s   d S r   r   r   r   r   r   test_package   s    zFinderTests.test_packagec                 C   s   d S r   r   r   r   r   r   test_module_in_package   s    z"FinderTests.test_module_in_packagec                 C   s   d S r   r   r   r   r   r   test_package_in_package   s    z#FinderTests.test_package_in_packagec                 C   s   d S r   r   r   r   r   r   test_package_over_module   s    z$FinderTests.test_package_over_modulec                 C   s   d S r   r   r   r   r   r   test_failure#   s    zFinderTests.test_failureN)__name__
__module____qualname____doc__abcabstractmethodr   r	   r
   r   r   r   r   r   r   r   r      s   




r   )	metaclassc                   @   sR   e Zd Zejdd Zejdd Zejdd Zejdd Zejd	d
 Z	dS )LoaderTestsc                 C   s   dS )zA module should load without issue.

        After the loader returns the module should be in sys.modules.

        Attributes to verify:

            * __file__
            * __loader__
            * __name__
            * No __path__

        Nr   r   r   r   r   r   +   s    zLoaderTests.test_modulec                 C   s   dS )a  Loading a package should work.

        After the loader returns the module should be in sys.modules.

        Attributes to verify:

            * __name__
            * __file__
            * __package__
            * __path__
            * __loader__

        Nr   r   r   r   r   r	   ;   s    zLoaderTests.test_packagec                 C   s   dS )zOA loader should not be dependent on it's parent package being
        imported.Nr   r   r   r   r   test_lacking_parentL   s    zLoaderTests.test_lacking_parentc                 C   s   dS )zIf a module is already in sys.modules and a reload fails
        (e.g. a SyntaxError), the module should be in the state it was before
        the reload began.Nr   r   r   r   r   test_state_after_failureR   s    z$LoaderTests.test_state_after_failurec                 C   s   dS )zVTest ImportError is raised when the loader is asked to load a module
        it can't.Nr   r   r   r   r   test_unloadableY   s    zLoaderTests.test_unloadableN)
r   r   r   r   r   r   r	   r   r   r   r   r   r   r   r   )   s   



r   )r   ABCMetar   r   r   r   r   r   <module>   s   %