File: //opt/alt/python312/lib64/python3.12/test/__pycache__/test_venv.cpython-312.opt-1.pyc
�
h�eq� � �T � d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl
Z
ddlZddlZddl
mZmZmZmZmZmZmZmZmZmZmZ ddlmZmZmZ ddlZddlZddlm Z m!Z! ddl"Z" ejH e
jJ e
jL k( xs e
jN e
jP k7 d� Z)eser ejT d� � e� dd�� Z+ G d � d
ejX � Z- G d� de-� Z.e) G d
� de-� � Z/e0dk( r ejb � yy# e#$ r dZ"Y ��w xY w)z|
Test harness for the venv module.
Copyright (C) 2011-2012 Vinay Sajip.
Licensed to the PSF under a contributor agreement.
� 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&