| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python312/Lib/site-packages/_pytest/config/__pycache__/ |
Upload File : |
�
��Hg~ � � � d dl mZ d dlZd dlmZ d dlZd dlmZ d dlmZ d dl Z ddl
mZ d dlm
Z
d d lmZ d d
lmZ d dlmZ dd�Z dd
�Z dd�Z dd�Zdd�ZdZ dd�Zdd�Zy)� )�annotationsN)�Path)�Iterable)�Sequence� )�
UsageError)�fail��absolutepath)�
commonpath��safe_existsc � � t j t | � � S # t j $ r}t t |� � |�d}~ww xY w)z�Parse the given generic '.ini' file using legacy IniConfig parser, returning
the parsed object.
Raise UsageError if the file cannot be parsed.
N)� iniconfig� IniConfig�str�
ParseErrorr )�path�excs �:C:\Python312\Lib\site-packages\_pytest/config/findpaths.py�_parse_ini_configr sC � �,��"�"�3�t�9�-�-����� ,���S��"��+��,�s � �A
�A�A
c �B � | j dk( r=t | � }d|v rt |d j � � S | j dk( ri S y
| j dk( ret | � }d|j
v rt |d j � � S d|j
v r!t
t j d�� d� � y
| j d
k( r�t j dk\ rdd
l}ndd
l}| j d�� } |j |� }|j# di � j# di � j# dd
� }|�.dd�}|j � D �� ci c] \ }} | || � �� c} }S y
# |j $ r}t! | � d|� �� |�d
}~ww xY wc c} }w )z�Load pytest configuration from the given file path, if supported.
Return None if the file does not contain valid pytest configuration.
z.ini�pytest�
pytest.iniz.cfgztool:pytest� setup.cfg)�filenameF)�pytracez.toml)� � r Nzutf-8)�encodingz: �tool�ini_optionsc �<