|
Server : LiteSpeed System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64 User : nandedex ( 1060) PHP Version : 8.1.33 Disable Function : NONE Directory : /opt/cppython/lib/python3.8/test/__pycache__/ |
U
>��g�h � @ sf d Z ddlZddlZddlmZ ddlmZmZmZmZ ddl Z ddl
Z
ddlZddlZddl
Z
ddlZddlZddlZddlZddlZddlZddlZddlZddlmZ 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�rbe�*� 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�svzt�tj� t� tj� W n6 t
k
rt } zt�dtj| f ��W 5 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 �-/opt/cppython/lib/python3.8/test/test_site.py�setUpModule( s �r c C s t tjd d �<