mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-17 07:43:46 -05:00
Remove PATH warning (#2001)
* In some cases (Ubuntu), `pyenv init -` has to be run before `pyenv init --path`. * The warning has served its purpose by now.
This commit is contained in:
@@ -90,13 +90,6 @@ OUT
|
||||
assert_line 0 "set -gx PATH '${PYENV_ROOT}/shims' \$PATH"
|
||||
}
|
||||
|
||||
@test "prints a warning if shims not in PATH" {
|
||||
export PATH="$(perl -0x3A -ls -e 'while (<>) { chomp; ($_ ne $d) && print; }' -- -d="${PYENV_ROOT}/shims" <<<"$PATH")"
|
||||
run pyenv-init -
|
||||
assert_success
|
||||
assert_line 0 'echo '\''WARNING: `pyenv init -` no longer sets PATH.'\'
|
||||
}
|
||||
|
||||
@test "outputs sh-compatible syntax" {
|
||||
run pyenv-init - bash
|
||||
assert_success
|
||||
|
||||
Reference in New Issue
Block a user