Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
镜像
Python_Packaging_Authority
pip
提交
ec76495f
P
pip
项目概览
镜像
/
Python_Packaging_Authority
/
pip
12 个月 前同步成功
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
pip
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ec76495f
编写于
9月 13, 2010
作者:
H
Hugo Lopes Tavares
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
work around to always remove temp files/dirs the test function creates
上级
11cc0b65
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
18 addition
and
2 deletion
+18
-2
tests/test_config.py
tests/test_config.py
+8
-1
tests/test_uninstall.py
tests/test_uninstall.py
+10
-1
未找到文件。
tests/test_config.py
浏览文件 @
ec76495f
...
...
@@ -69,7 +69,14 @@ def test_config_file_override_stack():
local, overriding all with a command line flag).
"""
f
,
config_file
=
tempfile
.
mkstemp
(
'-pip.cfg'
,
'test-'
)
try
:
_
,
config_file
=
tempfile
.
mkstemp
(
'-pip.cfg'
,
'test-'
)
_test_config_file_override_stack
(
config_file
)
finally
:
os
.
remove
(
config_file
)
def
_test_config_file_override_stack
(
config_file
):
environ
=
clear_environ
(
os
.
environ
.
copy
())
environ
[
'PIP_CONFIG_FILE'
]
=
config_file
# set this to make pip load it
reset_env
(
environ
)
...
...
tests/test_uninstall.py
浏览文件 @
ec76495f
import
textwrap
import
sys
import
shutil
from
os.path
import
join
from
tempfile
import
mkdtemp
from
test_pip
import
reset_env
,
run_pip
,
assert_all_changes
,
write_file
...
...
@@ -89,7 +90,15 @@ def test_uninstall_editable_with_source_outside_venv():
Test uninstalling editable install from existing source outside the venv.
"""
tmpdir
=
join
(
mkdtemp
(),
'virtualenv'
)
try
:
temp
=
mkdtemp
()
tmpdir
=
join
(
temp
,
'virtualenv'
)
_test_uninstall_editable_with_source_outside_venv
(
tmpdir
)
finally
:
shutil
.
rmtree
(
temp
)
def
_test_uninstall_editable_with_source_outside_venv
(
tmpdir
):
env
=
reset_env
()
result
=
env
.
run
(
'hg'
,
'clone'
,
local_repo
(
'hg+http://bitbucket.org/ianb/virtualenv'
),
tmpdir
)
result2
=
run_pip
(
'install'
,
'-e'
,
tmpdir
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录