mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2026-09-10 07:16:18 -04:00
Unset environment variables to pass tests while activated
This commit is contained in:
parent
0b9b19232a
commit
25bf4a6155
|
|
@ -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" {
|
||||
|
|
|
|||
Loading…
Reference in a new issue