[self-tests] several failures against toml-test 1.1.0
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- python
- 领域
- testing-qa
调研方向
从 tests/test_toml_tests.py 和报告中提到的 toml-test 子模块版本开始。针对 toml-test 1.1.0 运行测试套件,并检查涉及 dotted keys 和 carriage returns 的四个 invalid_decode 失败。兼容性问题得到解决且完整的 self-test suite 通过,即视为完成。
由索引模型根据 Issue 内容生成。
描述
I've updated toml-test for my distro (1.1.0).
after that tomlkit's tests suite fails with:
=================================== FAILURES ===================================
_____________ test_invalid_decode[table/append-with-dotted-keys-2] _____________
invalid_decode_case = {'toml': '# This is the same issue as in injection-1.toml, except that nests one level\n# deeper. See that file for a ...= 9\n\n[a]\n b.c.d.k.t = "Using dotted keys to add to [a.b.c.d] after explicitly defining it above is not allowed"\n'}
def test_invalid_decode(invalid_decode_case):
> with pytest.raises(TOMLKitError):
E Failed: DID NOT RAISE <class 'tomlkit.exceptions.TOMLKitError'>
tests/test_toml_tests.py:55: Failed
_____________ test_invalid_decode[table/append-with-dotted-keys-1] _____________
invalid_decode_case = {'toml': '# First a.b.c defines a table: a.b.c = {z=9}\n#\n# Then we define a.b.c.t = "str" to add a str to the above ...\n z = 9\n\n[a]\n b.c.t = "Using dotted keys to add to [a.b.c] after explicitly defining it above is not allowed"\n'}
def test_invalid_decode(invalid_decode_case):
> with pytest.raises(TOMLKitError):
E Failed: DID NOT RAISE <class 'tomlkit.exceptions.TOMLKitError'>
tests/test_toml_tests.py:55: Failed
___________________ test_invalid_decode[control/comment-cr] ____________________
invalid_decode_case = {'toml': 'comment-cr = "Carriage return in comment" # \na=1\n'}
def test_invalid_decode(invalid_decode_case):
> with pytest.raises(TOMLKitError):
E Failed: DID NOT RAISE <class 'tomlkit.exceptions.TOMLKitError'>
tests/test_toml_tests.py:55: Failed
_____________________ test_invalid_decode[control/bare-cr] _____________________
invalid_decode_case = {'toml': '# The following line contains a single carriage return control character\n\n'}
def test_invalid_decode(invalid_decode_case):
> with pytest.raises(TOMLKitError):
E Failed: DID NOT RAISE <class 'tomlkit.exceptions.TOMLKitError'>
tests/test_toml_tests.py:55: Failed
=========================== short test summary info ============================
FAILED tests/test_toml_tests.py::test_invalid_decode[table/append-with-dotted-keys-2]
FAILED tests/test_toml_tests.py::test_invalid_decode[table/append-with-dotted-keys-1]
FAILED tests/test_toml_tests.py::test_invalid_decode[control/comment-cr] - Fa...
FAILED tests/test_toml_tests.py::test_invalid_decode[control/bare-cr] - Faile...
======================== 4 failed, 800 passed in 9.35s =========================
tomlkit 0.9.0.
I understand that this project submodules toml-test (1.0.0 atm).
- 主要语言
- Python
- 星标
- 850
- 派生
- 163
- 平均合并
- 13 分钟
- 30 天内合并 PR
- 2
环境准备
我们还没有检查这个项目的环境配置文件。先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
python-poetry/tomlkit 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
python-poetry/tomlkit#546 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 68/100
python-poetry/tomlkit#603 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 52/100
python-poetry/tomlkit#580 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 72/100
python-poetry/tomlkit#577 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 20/100
python-poetry/tomlkit#574 · 5 条评论 ·
维护者通常 1 天内回复
查看 python-poetry/tomlkit 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
gradio-app/gradio#13895 ·
维护者通常 1 天内回复
-
build-error
难度 2/5 1-3 小时 新手友好度 76/100
spack/spack-packages#6713 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
ActivityWatch/activitywatch#1464 · 1 个 reaction ·
维护者通常 1 天内回复
-
[Bug]: The ckg tool drops the return type of every decorated Python method in class search results未关闭
难度 2/5 1-3 小时 新手友好度 78/100
bytedance/trae-agent#483 ·
维护者通常 1 天内回复