Current File : //usr/local/apps/python3/lib/python3.11/test/__pycache__/test_module.cpython-311.opt-1.pyc |
�
�Ke�3 � �� � d dl Z d dlZd dlmZ d dlmZ d dlmZ d dlZ ee� � Z G d� d� � Z
G d� d� � Z G d � d
e j � � Z
edk r e j � � dS dS )� N)�
gc_collect)�
import_helper)�assert_python_okc �$ � e Zd Zed� � � ZdS )�
FullLoaderc �6 � d� |j � � S )Nz<module '{}' (crafted)>)�format�__name__)�cls�ms �:/usr/local/apps/python3/lib/python3.11/test/test_module.py�module_reprzFullLoader.module_repr s � �(�/�/��
�;�;�;� N)r
�
__module__�__qualname__�classmethodr � r r
r r s- � � � � � ��<� <� �[�<� <� <r r c � � e Zd ZdS )�
BareLoaderN)r
r r r r r
r r s � � � � � ��Dr r c �� � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z
d � Zd
� Zd� Z
d� Zd
� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z!d � Z"d!� Z#d"� Z$d#� Z%d$� Z&d%S )&�ModuleTestsc � � t � t � � }| � t |j t
� � � � | � t |� � g � � |j }| � dt |� � z � � n# t $ r Y nw xY w| � |j t j � � d S )Nz
__name__ = %s)
�
ModuleType�__new__�
assertTrue�
isinstance�__dict__�dict�assertEqual�dirr
�fail�repr�AttributeError�__doc__)�self�foo�ss r
�test_uninitializedzModuleTests.test_uninitialized s� � � � � ��,�,�����
�3�<��6�6�7�7�7�����S���2�&�&�&� ���A��I�I�o��Q���/�0�0�0�0��� � � ��D� ���������j�&8�9�9�9�9�9s �1,B �
B+�*B+c � � t � t � � }| � t dt |d� � d S )Nz"module has no attribute 'not_here'�not_here)r r �assertRaisesRegexr# �getattr�r% r&