
    <e                     ^    d dl Z  G d de j                  Z G d de j                  ZdS )    Nc                       e Zd ZdZej        d             Zej        d             Zej        d             Zej        d             Z	ej        d             Z
ej        d             ZdS )	FinderTestsz!Basic tests for a finder to pass.c                     d S N selfs    ./usr/lib/python3.11/test/test_importlib/abc.pytest_modulezFinderTests.test_module   	     	    c                     d S r   r   r   s    r
   test_packagezFinderTests.test_package   r   r   c                     d S r   r   r   s    r
   test_module_in_packagez"FinderTests.test_module_in_package   	     	r   c                     d S r   r   r   s    r
   test_package_in_packagez#FinderTests.test_package_in_package   r   r   c                     d S r   r   r   s    r
   test_package_over_modulez$FinderTests.test_package_over_module   r   r   c                     d S r   r   r   s    r
   test_failurezFinderTests.test_failure#   r   r   N)__name__
__module____qualname____doc__abcabstractmethodr   r   r   r   r   r   r   r   r
   r   r      s        ++   	   	  
 	  
 	   	    r   r   )	metaclassc                       e Zd Zej        d             Zej        d             Zej        d             Zej        d             Zej        d             Z	dS )LoaderTestsc                     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   s    r
   r   zLoaderTests.test_module+   s	     	r   c                     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   s    r
   r   zLoaderTests.test_package;   s	     	r   c                     dS )zOA loader should not be dependent on it's parent package being
        imported.Nr   r   s    r
   test_lacking_parentzLoaderTests.test_lacking_parentL   r   r   c                     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   s    r
   test_state_after_failurez$LoaderTests.test_state_after_failureR   s	    
 	r   c                     dS )zVTest ImportError is raised when the loader is asked to load a module
        it can't.Nr   r   s    r
   test_unloadablezLoaderTests.test_unloadableY   r   r   N)
r   r   r   r   r   r   r   r%   r'   r)   r   r   r
   r!   r!   )   s           	    	  
 	   	    r   r!   )r   ABCMetar   r!   r   r   r
   <module>r+      s{    



" " " " "CK " " " "J4 4 4 4 4CK 4 4 4 4 4 4r   