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

Native TOML numeric faulthandler_timeout is rejected

クローズ
#15,132 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

関連するプルリクエストがすでにマージされています。

  • #15133 @hfycium による — マージ済み
  • #15152 @artem-sitd による — マージされずにクローズ

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
python
領域
testing

調査の方向性

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

環境構築

はじめの一歩

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

pytest-dev/pytest のほかの issue

pytest-dev/pytest の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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