Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[self-tests] several failures against toml-test 1.1.0

オープン
#172 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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 に関係する 4 件の 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分
マージ済み PR(30日)
2

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

python-poetry/tomlkit のほかの issue

python-poetry/tomlkit の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。