| Server IP : 121.121.20.254 / Your IP : 216.73.216.145 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/resources/__pycache__/ |
Upload File : |
�
���gR
� � � d dl Z d dlZd dlmZ d dlmZmZ ddlmZ G d� dej � Z
G d� d ej � Zy)
� 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� Zy)�CompatibilityFilesTestsc �\ � 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 �JC:\Python312\\Lib\test\test_importlib\resources\test_compatibilty_files.py�packagezCompatibilityFilesTests.package s- � ��Z�Z� 0�1�
��"�"���$�
�
� c �@ � t j | j � S �N�r �filesr �r s r r zCompatibilityFilesTests.files � � ����t�|�|�,�,r c �| � | j t d� | j j � D � � g d�� y )Nc 3 �4 K � | ] }|j �� � y �wr )�name)�.0r s r � <genexpr>z>CompatibilityFilesTests.test_spec_path_iter.<locals>.<genexpr> s � �� �>�)=��4�9�9�)=�s �r
)�assertEqual�sortedr �iterdirr s r �test_spec_path_iterz+CompatibilityFilesTests.test_spec_path_iter s. � �����>����);�);�)=�>�>��
r c �p � | j t | j dz j � � g � y �Nr �r'