File manager - Edit - /usr/local/CyberPanel/lib/python3.10/site-packages/setuptools/tests/__pycache__/fixtures.cpython-310.pyc
Back
o �hM � @ s� d dl Z d dlZd dlZd dlZd dlmZ d dlZd dlZddlm Z m Z ejdd� �Zejdd� �Z ejd d d�dd � �Zejdd� �Zdd� Zejd d�dd� �Zejd d�dd� �Zejdd� �Zejdd� �Zejdd� �ZdS )� N)�Path� )�contexts�environmentc c s� � t �� �H}| �d|� t �� �%}| �d|� t �� � dV W d � n1 s)w Y W d � n1 s8w Y W d � dS W d � dS 1 sPw Y dS )za Override site.USER_BASE and site.USER_SITE with temporary directories in a context. zsite.USER_BASEzsite.USER_SITEN)r �tempdir�setattr�save_user_site_setting)�monkeypatch� user_base� user_site� r �O/usr/local/CyberPanel/lib/python3.10/site-packages/setuptools/tests/fixtures.py� user_override s � ����"�r c c s6 � | � � �}|V W d � d S 1 sw Y d S )N)�as_cwd)�tmpdir�origr r r � tmpdir_cwd s � "�r T�session)�autouse�scopec C sN | j j�d�s dS t�t�� tj�d� W d � dS 1 s w Y dS )z� Workaround pytest-dev/pytest-xdist#376 ``pytest-xdist`` tends to inject '' into ``sys.path``, which may break certain isolation expectations. Remove the entry so the import machinery behaves the same irrespective of xdist. �xdistN� ) �config� pluginmanager� has_plugin� contextlib�suppress� ValueError�sys�path�remove)�requestr r r �workaround_xdist_376! s "�r"