python (3.12.0)
Αe\ N d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl Z d dl
Z
d dlZd dlm
Z
mZmZmZmZmZmZmZmZmZ d dlmZmZmZ d dlZd dlZd dlmZmZ d dl Z ejD e jF e jH k( xs e jJ e jL k7 d Z'eser ejP d e dd Z) G d d ejT 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_stdoutcaptured_stderr*skip_if_broken_multiprocessing_synchronizeverboserequires_subprocess
is_emscriptenis_wasirequires_venv_with_pip
TEST_HOME_DIRrequires_resource)can_symlinkEnvironmentVarGuardrmtree)patchMockz: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)stdoutstderrencodingutf-8backslashreplace)
subprocessPopenPIPEcommunicate
returncoder printdecodeCalledProcessError)cmdr pouterrs B/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/test/test_venv.pycheck_outputr% - s A }}HC||s#**W&89:++
LL#sC) )8O c 6 e Zd Z dZd Zd Zd Zd ZdddZy )
BaseTesti c F t j j t j | _ t j dk( rd| _ d| _ d| _ n+d| _ ddt j d d z f| _ d | _ t j }t j j | d
| _ t j dk( rFt j j! | r't j j# | sd| _ y d
| _ y )NntScriptsLibIncludebinlibpython%d.%d includewin32TF)ospathrealpathtempfilemkdtempenv_dirnamebindirr0 r3 sysversion_info_base_executablesplitexeplatformlexistsexistscannot_link_exe)self
executables r$ setUpzBaseTest.setUp? s ww''(8(8(:;
77d?#DKDH$DLDK}s/?/?/CCDDH$DL))
77==,R0LLG#
+GGNN:.#'D #(D r&