1 Star 0 Fork 13

wang_yue111/python-pytest-shutil

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0001-modified-path-to-fix-testcase.patch 794 Bytes
一键复制 编辑 原始数据 按行查看 历史
王歌 提交于 2020-09-11 15:43 . Modify Source0 Url
From b960d8d90235218a3e1f66a2e59420087e27c14a Mon Sep 17 00:00:00 2001
Subject: [PATCH] cmdline
---
tests/integration/test_cmdline_integration.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tests/integration/test_cmdline_integration.py b/tests/integration/test_cmdline_integration.py
index 8d92a2e..e99831f 100644
--- a/tests/integration/test_cmdline_integration.py
+++ b/tests/integration/test_cmdline_integration.py
@@ -5,6 +5,7 @@ from pytest_shutil import cmdline
def test_chdir():
here = os.getcwd()
+ bindir=os.path.realpath('/bin')
with cmdline.chdir('/bin'):
- assert os.getcwd() == '/bin'
- assert os.getcwd() == here
\ No newline at end of file
+ assert os.getcwd() == bindir
+ assert os.getcwd() == here
--
2.23.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wang_yue111/python-pytest-shutil.git
[email protected]:wang_yue111/python-pytest-shutil.git
wang_yue111
python-pytest-shutil
python-pytest-shutil
master

搜索帮助