Native TOML numeric faulthandler_timeout is rejected
メンテナーはふだん 1 日以内に返信
評価
調査の方向性
Start by reading the pytest configuration handling for faulthandler_timeout and reproduce the issue with the provided pytest.toml example. Check how the option behaves in INI-style configuration and how other typed TOML options are handled. Done means native TOML integers and floats are accepted for this float-valued option; an open linked pull request is already addressing the issue.
索引モデルが issue の本文から書いたものです。
説明
Summary
faulthandler_timeout rejects native numeric values in TOML configuration, even though the option is documented as a float and the TOML examples use a number.
Reproduction
On pytest main at f5240bef4, with Python 3.12 on Windows:
[pytest]
faulthandler_timeout = 5
Running a test produces:
ERROR: pytest.toml: config option 'faulthandler_timeout' expects a string, got int: 5
The same option works when configured through INI-style configuration or as a quoted TOML string.
Expected behavior
Native TOML integers and floats should be accepted for this float-valued option, consistent with the documentation and the other typed TOML options.
I have a small local fix and regression test ready for review.
- 主要言語
- Python
- スター
- 14.6k
- フォーク
- 3.5k
- 平均マージ
- 1日 16時間
- マージ済み PR(30日)
- 26
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
pytest-dev/pytest のほかの issue
-
Subtest durations become negative when `time` is mocked (subtests.py bypasses `_pytest.timing`)対応中かも @RonnyPfannschmidt が 2 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
pytest-dev/pytest#15201 ·
メンテナーはふだん 1 日以内に返信
-
`faulthandler_timeout` stops covering a test once setup, call or a subtest fails (`pytest_exception_interact` cancels the timer)対応中かも @krishna2707 が 6 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
pytest-dev/pytest#15180 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Assertion diff doesn't pretty-print the built-in frozen dict (Python 3.15)対応中かも @HakeemTheEmperor が 8 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
pytest-dev/pytest#15172 ·
メンテナーはふだん 1 日以内に返信
-
monkeypatch.setattr fails to undo on objects with a custom __setattr__ (regression from #14969)対応中かも @hardikkaurani が 27 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
pytest-dev/pytest#15099 · コメント 6 件 ·
メンテナーはふだん 1 日以内に返信
-
Allow dotted test filenames (`*.test.py`) via one-line change to `compute_module_name`再び着手できるかも @siddy-stack が 64 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
pytest-dev/pytest#14514 · コメント 6 件 ·
メンテナーはふだん 1 日以内に返信
pytest-dev/pytest の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
521xueweihan/HelloGitHub#4063 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
Vanilla-OS/apx-gui#112 ·
-
Devstral and Voxtral: section 5 fails in us-east-1 with 400 "Model does not support audio modality"オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
aws-samples/sample-per-model-bedrock#409 ·
メンテナーはふだん 1 日以内に返信
-
DuckDB 2.0 breaks to_pyarrow_batches対応中かも @DG47 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
ibis-project/ibis#12196 ·
メンテナーはふだん 1 日以内に返信