| Server IP : 121.121.20.254 / Your IP : 216.73.217.141 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python312/Lib/test/test_importlib/__pycache__/ |
Upload File : |
�
���g= � �d � d dl Z G d� de j �� Z G d� de j �� Zy)� Nc �� � e Zd ZdZej
d� � Zej
d� � Zej
d� � Zej
d� � Z ej
d� � Z
ej
d� � Zy) �FinderTestsz!Basic tests for a finder to pass.c � � y �N� ��selfs �,C:\Python312\\Lib\test\test_importlib\abc.py�test_modulezFinderTests.test_module � � �
� c � � y r r r s r
�test_packagezFinderTests.test_package
r r
c � � y r r r s r
�test_module_in_packagez"FinderTests.test_module_in_package � � �
r
c � � y r r r s r
�test_package_in_packagez#FinderTests.test_package_in_package r r
c � � y r r r s r
�test_package_over_modulez$FinderTests.test_package_over_module r r
c � � y r r r s r
�test_failurezFinderTests.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 Zd Zej d� � Zej d� � Zej d� � Zej d� � Zej d� � Z y)�LoaderTestsc � � y)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 s r
r zLoaderTests.test_module+ s � �
r
c � � y)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 zLoaderTests.test_package; s � �
r
c � � y)zOA loader should not be dependent on it's parent package being
imported.Nr r s r
�test_lacking_parentzLoaderTests.test_lacking_parentL r r
c � � y)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 s r
�test_state_after_failurez$LoaderTests.test_state_after_failureR s � �
r
c � � y)zVTest ImportError is raised when the loader is asked to load a module
it can't.Nr r s r
�test_unloadablezLoaderTests.test_unloadableY r r
N)
r r r r r r r r% r'