|
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�Q � @ s$ d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl m
Z
mZmZm
Z
mZmZmZmZ d dlZd dlZd dlZzd dlZW n ek
r� dZY nX e�ejejkp�ejejkd�Zd
dd�ZG dd� dej�ZG dd � d e�Z eG d
d� de��Z!e"dk�r e�#� dS )� N)�captured_stdout�captured_stderr�
requires_zlib�can_symlink�EnvironmentVarGuard�rmtree�
import_module�*skip_if_broken_multiprocessing_synchronizez:cannot run venv.create from within a venv on this platformc C sB t j| t jt j|d�}|�� \}}|jr:t �|j| ||��||fS )N)�stdout�stderr�encoding)�
subprocess�Popen�PIPE�communicate�
returncode�CalledProcessError)�cmdr �p�out�err� r �-/opt/cppython/lib/python3.8/test/test_venv.py�check_output% s � �r c @ s8 e Zd ZdZdd� Zdd� Zdd� Zdd � Zd
d� ZdS )
�BaseTesti� c C s� t j�t�� �| _t jdkr0d| _d| _d| _ n$d| _ddt
jd d� f| _d | _ t
j}t j�
|�d
| _t
jdkr�t j�|�r�t j�|�s�d| _nd
| _d S )N�nt�Scripts��Lib�Include�bin�lib�python%d.%d� �include����win32TF)�os�path�realpath�tempfile�mkdtemp�env_dir�name�bindirr! r$ �sys�version_info�_base_executable�split�exe�platform�lexists�exists�cannot_link_exe)�self�
executabler r r �setUp4 s"