File: D:/Python311/Lib/test/test_importlib/__pycache__/test_compatibilty_files.cpython-311.pyc
�
��Vc#
� � � d dl Z d dlZd dlmZ d dlmZmZ ddlmZ G d� dej � � Z G d� d ej � � Z
dS )
� N)� resources)�CompatibilityFiles� wrap_spec� )�utilc � � e Zd Zed� � � Zed� � � Zd� Zd� Zd� Zd� Z d� Z
d� Zd � Zd
� Z
d� Zd� Zd
� Zd� Zd� Zd� Zd� ZdS )�CompatibilityFilesTestsc �X � t j d� � }t j |dd�� � S )N�
Hello, world!� some_path��a�b�c)�file�path�contents)�io�BytesIOr �create_package)�self�
bytes_datas �?D:\Python311\Lib\test\test_importlib\test_compatibilty_files.py�packagezCompatibilityFilesTests.package s5 � ��Z� 0�1�1�
��"���$�
�
�
�
� c �4 � t j | j � � S �N�r �filesr �r s r r zCompatibilityFilesTests.files � � ���t�|�,�,�,r c � � | � t d� | j � � � D � � � � g d�� � d S )Nc 3 �$ K � | ]}|j V � �d S r )�name)�.0r s r � <genexpr>z>CompatibilityFilesTests.test_spec_path_iter.<locals>.<genexpr> s$ � � � �>�>��4�9�>�>�>�>�>�>r r
)�assertEqual�sortedr �iterdirr s r �test_spec_path_iterz+CompatibilityFilesTests.test_spec_path_iter sS � �����>�>���);�);�)=�)=�>�>�>�>�>��O�O�
�
�
�
�
r c � � | � t | j dz � � � � � g � � d S �Nr �r'