File: //opt/cppython/lib/python3.8/test/__pycache__/test_venv.cpython-38.pyc
U
.D�g�Q � @ s( d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl
mZmZm
Z
mZmZmZmZmZ ddlZddlZddlZzddlZW n ek
r� dZY nX e�ejejkp�ejejkd�Zddd�ZG dd� dej�Z G d d
� d
e �Z!eG dd� de ��Z"e#d
k�r$e�$� dS )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�
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 @ s<