File: //proc/thread-self/root/usr/local/lib/python3.7/test/__pycache__/test_venv.cpython-37.pyc
B
��g�O � @ s d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl
mZmZm
Z
mZmZmZ ddlZddlZddlZyddlZW n ek
r� dZY nX e�eed�p�ejejkd�Zddd�ZG dd � d ej�ZG d
d� de�ZeG dd
� d
e��Ze dk�re�!� 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�_base_executablez: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�PIPEZcommunicate�
returncode�CalledProcessError)�cmdr �p�out�err� r �*/usr/local/lib/python3.7/test/test_venv.py�check_output# s r c @ s<