File: //usr/local/lib/python3.7/test/test_importlib/__pycache__/abc.cpython-37.opt-1.pyc
B
��g� � @ s4 d dl Z G dd� de jd�ZG dd� de jd�ZdS )� Nc @ sd e Zd ZdZejdd� �Zejdd� �Zejdd� �Zejdd � �Z ejd
d� �Z
ejdd
� �ZdS )�FinderTestsz!Basic tests for a finder to pass.c C s d S )N� )�selfr r �3/usr/local/lib/python3.7/test/test_importlib/abc.py�test_module s zFinderTests.test_modulec C s d S )Nr )r r r r �test_package
s zFinderTests.test_packagec C s d S )Nr )r r r r �test_module_in_package s z"FinderTests.test_module_in_packagec C s d S )Nr )r r r r �test_package_in_package s z#FinderTests.test_package_in_packagec C s d S )Nr )r r r r �test_package_over_module s z$FinderTests.test_package_over_modulec C s d S )Nr )r r r r �test_failure# s zFinderTests.test_failureN)�__name__�
__module__�__qualname__�__doc__�abc�abstractmethodr r r r r
r r r r r r s r )� metaclassc @ sR e Zd Zejdd� �Zejdd� �Zejdd� �Zejdd� �Zejd d
� �Z dS )�LoaderTestsc C s dS )z�A 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 zLoaderTests.test_modulec C s dS )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 zLoaderTests.test_packagec C s dS )zOA loader should not be dependent on it's parent package being
imported.Nr )r r r r �test_lacking_parentL s zLoaderTests.test_lacking_parentc C s dS )z�If 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 dS )zVTest ImportError is raised when the loader is asked to load a module
it can't.Nr )r r r r �test_unloadableY s zLoaderTests.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 %