📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-06-28 04:57:25
📂
/ (Root)
/
opt
/
hc_python
/
lib
/
python3.12
/
site-packages
/
importlib_resources
/
tests
/
__pycache__
📍 /opt/hc_python/lib/python3.12/site-packages/importlib_resources/tests/__pycache__
🔄 Refresh
✏️
Editing: test_path.cpython-312.pyc
Read Only
� }�*j� � �b � d dl Z d dlZd dlZd dlZddlmZ G d� dej ej � Z G d� d� Z G d� d e ej ej � Z G d � de ej � Z G d� d e ej ej � Zedk( r ej � yy)� N� )�utilc � � e Zd Zd� Zy)�CommonTestsc � � t j t j |� j |� � 5 d d d � y # 1 sw Y y xY w)N)� resources�as_file�files�joinpath)�self�package�paths �R/opt/hc_python/lib/python3.12/site-packages/importlib_resources/tests/test_path.py�executezCommonTests.execute s4 � � � � �y���w�7�@�@��F� G�� H� G� G�s �A�AN)�__name__� __module__�__qualname__r � � r r r s � �r r c � � e Zd Zd� Zy)� PathTestsc �Z � t j | j � dz }t j |� 5 }t |t j � sJ �|j j d� sJ t |� � �d|j d�� k( sJ � ddd� y# 1 sw Y yxY w)zF Path should be readable and a pathlib.Path instance. � utf-8.filezHello, UTF-8 world! zutf-8)�encodingN)r r �datar � isinstance�pathlib�Path�name�endswith�repr� read_text�r �targetr s r �test_readingzPathTests.test_reading s� � � ������+�l�:�� � � �v� &�$��d�G�L�L�1�1�1��9�9�%�%�l�3�?�T�$�Z�?�3�*�d�n�n�g�n�.N�N�N�N� '� &� &�s �AB!�!B*N)r r r r% r r r r r s � �Or r c � � e Zd Zd� Zy)� PathDiskTestsc � � t j | j � dz }t j |� 5 }dt |� v sJ � ddd� y# 1 sw Y yxY w)z� Guarantee the internal implementation detail that file-system-backed resources do not get the tempdir treatment. r r N)r r r r �strr# s r �test_natural_pathzPathDiskTests.test_natural_path sI � � ������+�l�:�� � � �v� &�$��S��Y�&�&�&� '� &� &�s �A�AN)r r r r* r r r r'