File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,9 +37,7 @@ if [[ ${BASH_VERSINFO[0]} -gt 3 ]]; then
3737else
3838 current_versions=()
3939fi
40- if [[ -n $bare ]]; then
41- include_system=" "
42- else
40+ if [[ -z $bare ]]; then
4341 hit_prefix=" * "
4442 miss_prefix=" "
4543 OLDIFS=" $IFS "
131129
132130shopt -u dotglob
133131shopt -u nullglob
134-
135- if [[ $num_versions -eq 0 ]] && [[ -n $include_system ]]; then
136- echo " Warning: no Python virtualenv detected on the system" >&2
137- exit 1
138- fi
139-
Original file line number Diff line number Diff line change 9898 unstub pyenv-version-origin
9999}
100100
101- @test " no virtualenvs warning" {
102- rm -rf " ${PYENV_ROOT} /versions"
103- mkdir -p " ${PYENV_ROOT} /versions"
104- stub pyenv-version-name " : echo system"
105-
106- run pyenv-virtualenvs
107-
108- assert_failure
109- assert_output " Warning: no Python virtualenv detected on the system"
110-
111- unstub pyenv-version-name
112- }
113-
114101@test " no warning with --bare and no virtualenvs" {
115102 rm -rf " ${PYENV_ROOT} /versions"
116103 mkdir -p " ${PYENV_ROOT} /versions"
You can’t perform that action at this time.
0 commit comments