mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2025-11-13 05:53:52 -05:00
Unset environment variables to pass tests while activated
This commit is contained in:
@@ -5,10 +5,17 @@ load test_helper
|
||||
setup() {
|
||||
export HOME="${TMP}"
|
||||
export PYENV_ROOT="${TMP}/pyenv"
|
||||
unset PYENV_VERSION
|
||||
unset PYENV_ACTIVATE_SHELL
|
||||
unset PYENV_DEACTIVATE
|
||||
unset VIRTUAL_ENV
|
||||
unset CONDA_DEFAULT_ENV
|
||||
unset PYTHONHOME
|
||||
unset _OLD_VIRTUAL_PYTHONHOME
|
||||
unset PYENV_VIRTUALENV_DISABLE_PROMPT
|
||||
unset PYENV_VIRTUAL_ENV_DISABLE_PROMPT
|
||||
unset VIRTUAL_ENV_DISABLE_PROMPT
|
||||
unset _OLD_VIRTUAL_PS1
|
||||
}
|
||||
|
||||
@test "activate virtualenv from current version" {
|
||||
|
||||
@@ -5,7 +5,16 @@ load test_helper
|
||||
setup() {
|
||||
export HOME="${TMP}"
|
||||
export PYENV_ROOT="${TMP}/pyenv"
|
||||
unset PYENV_VERSION
|
||||
unset PYENV_ACTIVATE_SHELL
|
||||
unset PYENV_DEACTIVATE
|
||||
unset VIRTUAL_ENV
|
||||
unset CONDA_DEFAULT_ENV
|
||||
unset PYTHONHOME
|
||||
unset _OLD_VIRTUAL_PYTHONHOME
|
||||
unset PYENV_VIRTUALENV_DISABLE_PROMPT
|
||||
unset PYENV_VIRTUAL_ENV_DISABLE_PROMPT
|
||||
unset VIRTUAL_ENV_DISABLE_PROMPT
|
||||
unset _OLD_VIRTUAL_PS1
|
||||
}
|
||||
|
||||
|
||||
@@ -4,6 +4,17 @@ load test_helper
|
||||
|
||||
setup() {
|
||||
export PYENV_ROOT="${TMP}/pyenv"
|
||||
unset PYENV_VERSION
|
||||
unset PYENV_ACTIVATE_SHELL
|
||||
unset PYENV_DEACTIVATE
|
||||
unset VIRTUAL_ENV
|
||||
unset CONDA_DEFAULT_ENV
|
||||
unset PYTHONHOME
|
||||
unset _OLD_VIRTUAL_PYTHONHOME
|
||||
unset PYENV_VIRTUALENV_DISABLE_PROMPT
|
||||
unset PYENV_VIRTUAL_ENV_DISABLE_PROMPT
|
||||
unset VIRTUAL_ENV_DISABLE_PROMPT
|
||||
unset _OLD_VIRTUAL_PS1
|
||||
}
|
||||
|
||||
@test "deactivate conda root" {
|
||||
|
||||
@@ -4,6 +4,17 @@ load test_helper
|
||||
|
||||
setup() {
|
||||
export PYENV_ROOT="${TMP}/pyenv"
|
||||
unset PYENV_VERSION
|
||||
unset PYENV_ACTIVATE_SHELL
|
||||
unset PYENV_DEACTIVATE
|
||||
unset VIRTUAL_ENV
|
||||
unset CONDA_DEFAULT_ENV
|
||||
unset PYTHONHOME
|
||||
unset _OLD_VIRTUAL_PYTHONHOME
|
||||
unset PYENV_VIRTUALENV_DISABLE_PROMPT
|
||||
unset PYENV_VIRTUAL_ENV_DISABLE_PROMPT
|
||||
unset VIRTUAL_ENV_DISABLE_PROMPT
|
||||
unset _OLD_VIRTUAL_PS1
|
||||
}
|
||||
|
||||
@test "deactivate virtualenv" {
|
||||
|
||||
Reference in New Issue
Block a user