File: //proc/thread-self/root/usr/local/lib/python3.7/test/__pycache__/test_site.cpython-37.pyc
B
��g6l � @ s^ d Z ddlZddlZddlmZ ddlmZmZmZmZ ddl Z ddl
Z
ddlZddlZddl
Z
ddlZddlZddlZddlZddlZddlZddlZddlmZ ddlmZ ejjr�e�d��ddlZdadd � Zd
d� ZG dd
� d
ej�Z G dd� de!�Z"G dd� dej�Z#G dd� dej�Z$e�%ej&dkd�G dd� dej��Z'e(dk�rZe�)� dS )zTests for 'site'.
Tests assume the initial paths in sys.path once the interpreter has begun
executing have not been removed.
� N)�support)�captured_stderr�TESTFN�EnvironmentVarGuard�
change_cwd)�mock)�copyzPython was invoked with -Sc
C sz t jd d � atjrvtj�tj�svyt�tj� t� tj� W n6 t
k
rt } zt�dtj| f ��W d d } ~ X Y nX 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.7/test/test_site.py�setUpModule'