pyenv/test
Alex Hedges 02e1d4a293
Handle case where `pyenv-commands --sh` returns nothing (#2908)
In exceptional cases (custom installation, malfunctions elsewhere), `pyenv-commands --sh` may return nothing.
In non-Fish, this would cause "syntax error near unexpected token `)'" in `pyenv()`.

Bash does not allow to specify a `case` option that would never match.
This works around it by defaulting to `/`. Commands, being filenames, can never match it.
In Fish, nothing needs to be done: it apparently does interpret a `case` without argument as one that never matches.
2024-02-26 00:07:52 +03:00
..
libexec Revert "Merge pull request #1153 from cmcginty/remove-sbang" 2019-04-23 10:23:33 -04:00
--version.bats Workaround for CI failures with versions with multiple digits 2017-03-28 04:43:28 +00:00
commands.bats Import tests from rbenv with `sed -e s/rbenv/pyenv/g` 2014-01-03 02:06:36 +09:00
completions.bats Merge remote-tracking branch 'rbenv/master' into rbenv-20151121 2015-11-21 04:21:14 +00:00
exec.bats allow for sys.executable to be different 2021-09-21 05:07:06 +03:00
global.bats Merge remote-tracking branch 'rbenv/master' into rbenv-1.0 2016-03-02 01:39:52 +00:00
help.bats Import tests from rbenv with `sed -e s/rbenv/pyenv/g` 2014-01-03 02:06:36 +09:00
hooks.bats Merge remote-tracking branch 'rbenv/master' into rbenv-1.0 2016-03-02 01:39:52 +00:00
init.bats Handle case where `pyenv-commands --sh` returns nothing (#2908) 2024-02-26 00:07:52 +03:00
latest.bats Fix pyenv-latest to ignore virtualenvs (#2608) 2023-02-02 15:15:16 +03:00
local.bats Merge remote-tracking branch 'rbenv/master' into rbenv-1.0 2016-03-02 01:39:52 +00:00
prefix.bats consistent message 2021-09-21 05:07:12 +03:00
pyenv.bats Search for plugins in PYENV_DIR and PYENV_ROOT (#1697) 2020-10-01 21:33:34 -04:00
pyenv_ext.bats Revert "add tests for `PYENV_FILE_ARG`" 2021-02-16 23:46:08 +03:00
rehash.bats Add basic test for rehash wait 2018-04-24 00:42:47 +00:00
run Import rbenv changes at 7e0e85bdda 2014-12-01 00:29:26 +09:00
shell.bats Make work in nounset (-u) mode 2021-02-23 22:29:56 +02:00
shims.bats Import tests from rbenv with `sed -e s/rbenv/pyenv/g` 2014-01-03 02:06:36 +09:00
test_helper.bash Show output for assert_line() and refure_line() 2022-05-02 04:46:00 +03:00
version-file-read.bats Re-allow paths in .python-version provided that they resolve to within the versions dir (#2442) 2022-09-03 22:37:53 +03:00
version-file-write.bats Modify applications and versions for Python 2014-01-03 04:41:23 +09:00
version-file.bats Merge remote-tracking branch 'rbenv/master' into rbenv-20180402 2018-04-02 01:46:48 +00:00
version-name.bats Auto-resolve prefixes to the latest version (#2487) 2022-10-30 03:38:40 +03:00
version-origin.bats Merge remote-tracking branch 'rbenv/master' into rbenv-20180402 2018-04-02 01:46:48 +00:00
version.bats Merge remote-tracking branch 'rbenv/master' into rbenv-20151121 2015-11-21 04:21:14 +00:00
versions.bats Fix intermittent "broken pipe" in version sort test (#2817) 2023-10-12 22:09:48 +03:00
whence.bats Modify applications and versions for Python 2014-01-03 04:41:23 +09:00
which.bats Fix `pyenv which` to support auto-resolved prefixes (#2601) 2023-01-22 18:22:26 +03:00