python (3.12.0)
Αe\ P d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl
Z
ddlZddlZddl
mZmZmZmZmZmZmZmZmZmZ ddlmZmZmZ ddlZddlZddlmZm Z ddl!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
de, Z.e/dk( r ej` 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_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 8 e Zd ZdZdZd Zd Zd Zd Zddd Z y
)BaseTestzBase class for venv tests.i 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&