File: //opt/alt/python312/lib64/python3.12/test/test_importlib/__pycache__/test_main.cpython-312.pyc
�
h�e
7 �
� � d dl Z d dlZd dlZd dlZd dlZd dlZd dlZ d dlm Z
ddl
mZ ddlmZ d dlmZmZmZmZmZmZmZmZmZ ej4 d� � Z G d� d ej8 ej: � Z G d
� dej8 ej: � Z G d� d
ej@ ejB ej: � Z" G d� dej@ ejB ej: � Z# G d� dejH ejJ ejL ejN ej8 ej: � Z( G d� dej@ ejB ej: � Z) G d� dej@ ej: � Z* G d� dej@ e
j: � Z+ G d� dej: � Z, G d� dej@ ejB ejZ ej: � Z. G d� dej^ ej: � Z0 G d� dej@ ejB ej: � Z1 G d � d!ejH ejJ ejL ejN ej: � Z2y# e$ r
ddlm Z
Y ��gw xY w)"� N� )�fake_filesystem_unittest)�fixtures)�suppress) �Distribution�
EntryPoint�PackageNotFoundError�_unique�
distributions�entry_points�metadata�packages_distributions�versionc # � K � t j d�� 5 } t j dt �� | �� d d d � y # 1 sw Y y xY w�w)NT)�record�default)�category)�warnings�catch_warnings�simplefilter�DeprecationWarning)�ctxs �D/opt/alt/python312/lib64/python3.12/test/test_importlib/test_main.py�suppress_known_deprecationr s@ � �� � � � �� -� �����i�2D�E�� �� � �s �A� A� A�A�Ac � � e Zd ZdZd� Zd� Zd� Z ee� e � d� � � Z
ej e
d�� e
d�� � d � � Zy)
�
BasicTestsz\d+\.\d+(\.\d)?c � � t j d� }t |j t � sJ �t j | j |j � sJ �y )N�distinfo-pkg)r � from_name�
isinstancer �str�re�match�version_pattern)�self�dists r �test_retrieves_version_of_selfz)BasicTests.test_retrieves_version_of_self'