使用 JavaScript能使本网站更好的工作。
首页
探索
帮助
登录
isprogram
/
pyenv
镜像自地址
https://github.com/pyenv/pyenv.git
关注
1
点赞
0
派生
0
代码
工单
0
项目
0
版本发布
240
百科
动态
浏览代码
Adapt tests involving current directory for Docker
In Docker CI tests, the default current dir is read-only
master
Ivan Pozdeev
15 小时前
父节点
95df7dbc7b
当前提交
74c6efe2f4
共有
7 个文件被更改
,包括
7 次插入
和
7 次删除
分列视图
Diff 选项
显示统计
下载 Patch 文件
下载 Diff 文件
+1
-1
test/global.bats
+1
-1
test/local.bats
+1
-1
test/prefix.bats
+1
-1
test/version-name.bats
+1
-1
test/version.bats
+1
-1
test/versions.bats
+1
-1
test/which.bats
+ 1
- 1
test/global.bats
查看文件
@ -17,7 +17,7 @@ load test_helper
}
@test "version with glob characters is handled correctly" {
touch 1.1
cd "$BATS_TEST_TMPDIR";
touch 1.1
mkdir -p "$PYENV_ROOT"
echo "[1-9].?*" > "$PYENV_ROOT/version"
run pyenv-global
+ 1
- 1
test/local.bats
查看文件
@ -20,7 +20,7 @@ _setup() {
}
@test "version with glob characters is handled correctly" {
touch 1.1
cd "$BATS_TEST_TMPDIR";
touch 1.1
echo "[1-9].?*" > .python-version
run pyenv-local
assert_success "[1-9].?*"
+ 1
- 1
test/prefix.bats
查看文件
@ -17,7 +17,7 @@ load test_helper
}
@test "version with glob characters is handled correctly" {
touch 1.1
cd "$BATS_TEST_TMPDIR";
touch 1.1
PYENV_VERSION="[1-9].?*" run pyenv-prefix
assert_failure "pyenv: version \`[1-9].?*' not installed"
}
+ 1
- 1
test/version-name.bats
查看文件
@ -23,7 +23,7 @@ _setup() {
}
@test "version with glob characters is handled correctly" {
touch 1.1
cd "$BATS_TEST_TMPDIR";
touch 1.1
PYENV_VERSION="[1-9].?*" run pyenv-version-name
assert_failure <<'!'
pyenv: version `[1-9].?*' is not installed (set by PYENV_VERSION environment variable)
+ 1
- 1
test/version.bats
查看文件
@ -81,7 +81,7 @@ OUT
}
@test "version with glob characters is handled correctly" {
touch 1.1
cd "$BATS_TEST_TMPDIR";
touch 1.1
PYENV_VERSION="[1-9].?*" run pyenv-version
assert_failure
assert_output <<OUT
+ 1
- 1
test/versions.bats
查看文件
@ -66,7 +66,7 @@ OUT
@test "version with glob characters is handled correctly" {
stub_system_python
create_version "[1-9].?*"
touch 1.1
cd "$BATS_TEST_TMPDIR";
touch 1.1
run pyenv-versions
assert_success
assert_output <<OUT
+ 1
- 1
test/which.bats
查看文件
@ -92,7 +92,7 @@ OUT
@test "version with glob characters is handled correctly" {
bats_require_minimum_version 1.5.0
touch 1.1
cd "$BATS_TEST_TMPDIR";
touch 1.1
PATH="$(path_without foo)" PYENV_VERSION="[1-9].?*" run -127 pyenv-which foo
assert_failure
assert_output <<!
撰写
预览
正在加载...
取消
保存