| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/lib/python3.9/site-packages/_pytest/config/__pycache__/ |
Upload File : |
a
05d� � @ s� d dl Z d dlZd dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlm Z d dlm
Z
d d lmZ d d
lmZ d dl
Z
ddlmZ d d
lmZ d dlmZ d dlmZ er�ddlmZ ee
jd�dd�Zeeeeeeee f f d�dd�Zee e
ee ee eeeeee f f f d�dd�Zee ed�dd�Zee ee d�dd�ZdZd'ee e e ee ed e
eee eeeeee f f f d!�d"d#�Zee d$�d%d&�Z!dS )(� N)�Path)�Dict)�Iterable)�List)�Optional)�Sequence)�Tuple)�
TYPE_CHECKING)�Union� )�
UsageError)�fail��absolutepath)�
commonpath)�Config��path�returnc
C sJ zt �t| ��W S t jyD } ztt|��|�W Y d}~n
d}~0 0 dS )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�strZ
ParseErrorr )r �exc� r �</usr/lib/python3.9/site-packages/_pytest/config/findpaths.py�_parse_ini_config s r )�filepathr c
sd | j dkr<t| �}d|v r*t|d �� �S | jdkr8i S �n$| j dkr�t| �}d|jv rht|d �� �S d|jv r�ttjdd�dd � n�| j d
k�r`t j
dkr�dd
l}ndd
l}| j
dd�}z|�|�}W n< |j�y } z t| � d|� ��|�W Y d
}~n
d
}~0 0 |�di ��di ��dd
�}|d
u�r`ttttt f d�dd�� � fdd�|�� D �S d
S )z�Load pytest configuration from the given file path, if supported.
Return None if the file does not contain valid pytest configuration.
z.iniZpytest�
pytest.iniz.cfgztool:pytest� setup.cfg)�filenameF)Zpytracez.toml)� � r Nzutf-8)�encodingz: ZtoolZini_options)�vr c S s t | t�r| S t| �S �N)�
isinstance�listr )r# r r r �make_scalarT s z/load_config_dict_from_file.<locals>.make_scalarc s i | ]\}}|� |��qS r r )�.0�kr# �r'