mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2025-11-17 16:03:42 -05:00
Replaced pyvenv by -m venv
This commit is contained in:
@@ -20,9 +20,9 @@ unstub_pyenv() {
|
||||
unstub pyenv-rehash
|
||||
}
|
||||
|
||||
@test "use pyvenv if virtualenv is not available" {
|
||||
@test "use venv if virtualenv is not available" {
|
||||
export PYENV_VERSION="3.5.1"
|
||||
setup_pyvenv "3.5.1"
|
||||
setup_m_venv "3.5.1"
|
||||
stub_pyenv "${PYENV_VERSION}"
|
||||
stub pyenv-prefix " : echo '${PYENV_ROOT}/versions/${PYENV_VERSION}'"
|
||||
stub pyenv-virtualenv-prefix " : false"
|
||||
@@ -41,12 +41,12 @@ OUT
|
||||
unstub_pyenv
|
||||
unstub pyenv-virtualenv-prefix
|
||||
unstub pyenv-exec
|
||||
teardown_pyvenv "3.5.1"
|
||||
teardown_m_venv "3.5.1"
|
||||
}
|
||||
|
||||
@test "not use pyvenv if virtualenv is available" {
|
||||
@test "not use venv if virtualenv is available" {
|
||||
export PYENV_VERSION="3.5.1"
|
||||
setup_pyvenv "3.5.1"
|
||||
setup_m_venv "3.5.1"
|
||||
create_executable "3.5.1" "virtualenv"
|
||||
stub_pyenv "${PYENV_VERSION}"
|
||||
stub pyenv-prefix " : echo '${PYENV_ROOT}/versions/${PYENV_VERSION}'"
|
||||
@@ -66,10 +66,10 @@ OUT
|
||||
unstub_pyenv
|
||||
unstub pyenv-virtualenv-prefix
|
||||
unstub pyenv-exec
|
||||
teardown_pyvenv "3.5.1"
|
||||
teardown_m_venv "3.5.1"
|
||||
}
|
||||
|
||||
@test "install virtualenv if pyvenv is not avaialble" {
|
||||
@test "install virtualenv if venv is not avaialble" {
|
||||
export PYENV_VERSION="3.2.1"
|
||||
setup_version "3.2.1"
|
||||
stub_pyenv "${PYENV_VERSION}"
|
||||
@@ -96,7 +96,7 @@ OUT
|
||||
|
||||
@test "install virtualenv if -p has given" {
|
||||
export PYENV_VERSION="3.5.1"
|
||||
setup_pyvenv "3.5.1"
|
||||
setup_m_venv "3.5.1"
|
||||
stub_pyenv "${PYENV_VERSION}"
|
||||
stub pyenv-prefix " : echo '${PYENV_ROOT}/versions/${PYENV_VERSION}'"
|
||||
stub pyenv-virtualenv-prefix " : false"
|
||||
@@ -117,12 +117,12 @@ OUT
|
||||
unstub_pyenv
|
||||
unstub pyenv-virtualenv-prefix
|
||||
unstub pyenv-exec
|
||||
teardown_pyvenv "3.5.1"
|
||||
teardown_m_venv "3.5.1"
|
||||
}
|
||||
|
||||
@test "install virtualenv if --python has given" {
|
||||
export PYENV_VERSION="3.5.1"
|
||||
setup_pyvenv "3.5.1"
|
||||
setup_m_venv "3.5.1"
|
||||
stub_pyenv "${PYENV_VERSION}"
|
||||
stub pyenv-prefix " : echo '${PYENV_ROOT}/versions/${PYENV_VERSION}'"
|
||||
stub pyenv-virtualenv-prefix " : false"
|
||||
@@ -143,7 +143,7 @@ OUT
|
||||
unstub_pyenv
|
||||
unstub pyenv-virtualenv-prefix
|
||||
unstub pyenv-exec
|
||||
teardown_pyvenv "3.5.1"
|
||||
teardown_m_venv "3.5.1"
|
||||
}
|
||||
|
||||
@test "install virtualenv with unsetting troublesome pip options" {
|
||||
|
||||
Reference in New Issue
Block a user