Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Native TOML numeric faulthandler_timeout is rejected

Aperta
#15,132 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@hfycium ci sta già lavorando.

Dal 5/10/2026.

  • #15133 di @hfycium — aperta
  • #15152 di @artem-sitd — chiusa senza merge

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
python
Ambito
testing

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
14.6k
Fork
3.5k
Merge medio
1g 21h
PR unite (30g)
29

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di pytest-dev/pytest

Tutte le issue di pytest-dev/pytest

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.