File: //usr/local/lib/python3.10/test/__pycache__/test_site.cpython-310.pyc
o
�i2o � @ s� d Z ddlZddlZddlmZ ddlmZ ddlmZ ddlmZ ddlm Z m
Z
mZ ddlZddl
Z
ddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlmZ dd lmZ ejjrye�d
��ddl Z e j!duZ"da#dd� Z$d
d� Z%G dd� dej&�Z'G dd� de(�Z)G dd� dej&�Z*G dd� dej&�Z+e�,ej-dkd�G dd� dej&��Z.e/dkr�e�0� dS dS )zTests for 'site'.
Tests assume the initial paths in sys.path once the interpreter has begun
executing have not been removed.
� N)�support)� os_helper)�
socket_helper)�captured_stderr)�TESTFN�EnvironmentVarGuard�
change_cwd)�mock)�copyzPython was invoked with -Sc
C sv t jd d � atjr7tj�tj�s9zt�tj� t� tj� W d S t
y6 } z
t�dtj| f ��d } ~ ww d S d S )Nz-unable to create user site directory (%r): %s)
�sys�path�OLD_SYS_PATH�site�ENABLE_USER_SITE�os�isdir� USER_SITE�makedirs�
addsitedir�PermissionError�unittest�SkipTest)�exc� r �+/usr/local/lib/python3.10/test/test_site.py�setUpModule, s ����r c C s t tjd d �<