관리-도구
편집 파일: test_imports.cpython-311.pyc
� �܋f�� � � � d dl mZ d dlmZmZmZmZmZ d dl m Z mZ G d� de � � Z G d� de � � Z G d� d e � � Zd S )� )�messages)�FutureImportation�Importation�ImportationFrom�StarImportation�SubmoduleImportation)�TestCase�skipc �t � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z d � Zd � Zd� Z d� Zd � Zd� Zd� Zd� Zd� ZdS )�TestImportationObjectc �l � t dd d� � }|j dk sJ �t |� � dk sJ �d S )N�azimport a�r �source_statement�str��self�bindings �k/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pyflakes/test/test_imports.py�test_import_basicz'TestImportationObject.test_import_basic sD � ��c�4��-�-���'�:�5�5�5�5��7�|�|�s�"�"�"�"�"�"� c �l � t dd d� � }|j dk sJ �t |� � dk sJ �d S )N�cr z import a as cza as cr r s r �test_import_asz$TestImportationObject.test_import_as sD � ��c�4��-�-���'�?�:�:�:�:��7�|�|�x�'�'�'�'�'�'r c �j � t dd � � }|j dk sJ �t |� � dk sJ �d S )N�a.bz import a.b)r r r r s r �test_import_submodulez+TestImportationObject.test_import_submodule sB � �&�u�d�3�3���'�<�7�7�7�7��7�|�|�u�$�$�$�$�$�$r c �l � t dd d� � }|j dk sJ �t |� � dk sJ �d S )Nr r zimport a.b as c�a.b as cr r s r �test_import_submodule_asz.TestImportationObject.test_import_submodule_as sE � ��c�4��/�/���'�+<�<�<�<�<��7�|�|�z�)�)�)�)�)�)r c �l � t dd d� � }|j dk sJ �t |� � dk sJ �d S )Nr r zimport a.b as aza.b as ar r s r �$test_import_submodule_as_source_namez:TestImportationObject.test_import_submodule_as_source_name# sE � ��c�4��/�/���'�+<�<�<�<�<��7�|�|�z�)�)�)�)�)�)r c �n � t dd dd� � }|j dk sJ �t |� � dk sJ �d S )Nr �.zfrom . import az.a�r r r r s r �test_importfrom_relativez.TestImportationObject.test_importfrom_relative( sG � �!�#�t�S�#�6�6���'�+<�<�<�<�<��7�|�|�t�#�#�#�#�#�#r c �n � t dd dd� � }|j dk sJ �t |� � dk sJ �d S )Nr �..zfrom .. import a�..ar% r s r �test_importfrom_relative_parentz5TestImportationObject.test_importfrom_relative_parent- sG � �!�#�t�T�3�7�7���'�+=�=�=�=�=��7�|�|�u�$�$�$�$�$�$r c �n � t dd dd� � }|j dk sJ �t |� � dk sJ �d S )N�br) zfrom ..a import bz..a.br% r s r �$test_importfrom_relative_with_modulez:TestImportationObject.test_importfrom_relative_with_module2 �G � �!�#�t�U�C�8�8���'�+>�>�>�>�>��7�|�|�w�&�&�&�&�&�&r c �n � t dd dd� � }|j dk sJ �t |� � dk sJ �d S )Nr r) r, zfrom ..a import b as cz ..a.b as cr% r s r �'test_importfrom_relative_with_module_asz=TestImportationObject.test_importfrom_relative_with_module_as7 �G � �!�#�t�U�C�8�8���'�+C�C�C�C�C��7�|�|�|�+�+�+�+�+�+r c �n � t dd dd� � }|j dk sJ �t |� � dk sJ �d S )Nr, r zfrom a import br r% r s r �test_importfrom_memberz,TestImportationObject.test_importfrom_member<