소스 검색

tests: remove "supports python -S <cmd>" (#1168)

This was imported semi-automatically in 0965577, but `ruby -S` is
different from `python -S`.

`ruby -S`: look for the script using PATH environment variable
`python -S`: don't imply 'import site' on initialization
pull/1169/head
Daniel Hahler 5 년 전
committed by GitHub
부모
커밋
31b7e1c390
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일0개의 추가작업 그리고 30개의 파일을 삭제
  1. +0
    -30
      test/exec.bats

+ 0
- 30
test/exec.bats 파일 보기

@ -77,33 +77,3 @@ ${PYENV_ROOT}/versions/3.4/bin/python
args
OUT
}
@test "supports python -S <cmd>" {
export PYENV_VERSION="3.4"
# emulate `python -S' behavior
create_executable "python" <<SH
#!$BASH
if [[ \$1 == "-S"* ]]; then
found="\$(PATH="\${PYTHONPATH:-\$PATH}" which \$2)"
# assert that the found executable has python for shebang
if head -1 "\$found" | grep python >/dev/null; then
\$BASH "\$found"
else
echo "python: no Python script found in input (LoadError)" >&2
exit 1
fi
else
echo 'python 3.4 (pyenv test)'
fi
SH
create_executable "fab" <<SH
#!/usr/bin/env python
echo hello fab
SH
pyenv-rehash
run python -S fab
assert_success "hello fab"
}

불러오는 중...
취소
저장