test_pullWithUnnormalizedPath fails in python3 tests.
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- git, python
- 领域
- testing-qa
调研方向
首先在 Python 2 和 Python 3 下运行 test_pullWithUnnormalizedPath,然后检查 git/config.py 中的 traceback,特别是 release() 和 write()。比较 test runner 对已记录异常的处理方式与最终的 unittest 结果;当 Python 3 的行为得到解释,并且测试报告正确结果时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
For example here
https://circleci.com/gh/box/wavectl/309
The test_pullWithUnnormalizedPath test actually failed. Gave this output:
[test_pullWithUnnormalizedPath.py] ERROR:git.config:Exception during destruction of GitConfigParser
[test_pullWithUnnormalizedPath.py] Traceback (most recent call last):
[test_pullWithUnnormalizedPath.py] File "/home/circleci/project/venv/lib64/python3.6/os.py", line 666, in __getitem__
[test_pullWithUnnormalizedPath.py] value = self._data[self.encodekey(key)]
[test_pullWithUnnormalizedPath.py] KeyError: b'COLUMNS'
[test_pullWithUnnormalizedPath.py]
[test_pullWithUnnormalizedPath.py] During handling of the above exception, another exception occurred:
[test_pullWithUnnormalizedPath.py]
[test_pullWithUnnormalizedPath.py] Traceback (most recent call last):
[test_pullWithUnnormalizedPath.py] File "/home/circleci/project/venv/lib/python3.6/site-packages/git/config.py", line 259, in release
[test_pullWithUnnormalizedPath.py] self.write()
[test_pullWithUnnormalizedPath.py] File "/home/circleci/project/venv/lib/python3.6/site-packages/git/config.py", line 79, in assure_data_present
[test_pullWithUnnormalizedPath.py] return func(self, *args, **kwargs)
[test_pullWithUnnormalizedPath.py] File "/home/circleci/project/venv/lib/python3.6/site-packages/git/config.py", line 488, in write
[test_pullWithUnnormalizedPath.py] with open(self._file_or_files, "wb") as fp:
[test_pullWithUnnormalizedPath.py] FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmpxykt9gv0/.git/config'
[test_pullWithUnnormalizedPath.py] .
[test_pullWithUnnormalizedPath.py] ----------------------------------------------------------------------
[test_pullWithUnnormalizedPath.py] Ran 1 test in 3.850s
[test_pullWithUnnormalizedPath.py]
[test_pullWithUnnormalizedPath.py] OK
- Why is this test failing in python3 only. It passes in python2
- Even though there was an exeption, why did the python unittest pass and print this :
[test_pullWithUnnormalizedPath.py] OK?
- 主要语言
- Python
- 星标
- 16
- 派生
- 10
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
box/wavectl 的其他 Issue
-
documentation
难度 3/5 1-2 天 新手友好度 25/100
-
testplan
难度 3/5 1-2 天 新手友好度 35/100
-
enhancement
难度 4/5 3-5 天 新手友好度 35/100
-
testplan
难度 3/5 1-2 天 新手友好度 35/100
-
enhancement
难度 4/5 3-5 天 新手友好度 35/100
相似的 Issue
-
documentation
难度 2/5 1-3 小时 新手友好度 67/100
维护者通常 1 天内回复
-
good first issue module-baseline needs triage ux
难度 2/5 1-3 小时 新手友好度 82/100
darnitdevorg/darnit#650 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
nyjc-computing/campus#938 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
nf-osi/nf-metadata-dictionary#1027 ·
维护者通常 1 天内回复
-
bug documentation
难度 1/5 1 小时以内 新手友好度 92/100
qatrackplus/qatrackplus#913 ·
维护者通常 3 天内回复