File: //opt/alt/python312/lib64/python3.12/test/__pycache__/test_venv.cpython-312.opt-2.pyc
�
h�eq� � �R � d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl Z d dl
Z
d dlZd dlm
Z
mZmZmZmZmZmZmZmZmZmZ d dlmZmZmZ d dlZd dlZd dlmZm Z d dl!Z! ejF e jH e jJ k( xs e jL e jN k7 d� Z(eser ejR d� � e� dd�� Z* G d� d ejV � Z, G d
� de,� Z-e( G d� d
e,� � Z.e/dk( r ej` � yy# e"$ r dZ!Y ��w xY w)� N)�captured_stdout�captured_stderr�*skip_if_broken_multiprocessing_synchronize�verbose�requires_subprocess�
is_emscripten�is_wasi�requires_venv_with_pip�
TEST_HOME_DIR�requires_resource�copy_python_src_ignore)�can_symlink�EnvironmentVarGuard�rmtree)�patch�Mockz:cannot run venv.create from within a venv on this platformz)venv is not available on Emscripten/WASI.c �< � t j | t j t j |�� }|j � \ }}|j rEt
r|rt
|j dd� � t j |j | ||� �||fS )N)�stdout�stderr�encoding�utf-8�backslashreplace) �
subprocess�Popen�PIPE�communicate�
returncoder �print�decode�CalledProcessError)�cmdr �p�out�errs �5/opt/alt/python312/lib64/python3.12/test/test_venv.py�check_outputr&