shell bypass 403
o
abfh � @ s� d Z ddlZddlZddlmZ ddlmZ ddlmZ ddlmZ ddlm Z m
Z
mZ ddlZddl
Z
ddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlmZ dd lmZ ejjrue�d
��ddlZej 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�/� 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 �7/usr/local/python-3.10/lib/python3.10/test/test_site.py�setUpModule+ s ����r c C s t tjd d �<