Native TOML numeric faulthandler_timeout is rejected
Los mantenedores suelen responder en 1 día
@hfycium ya está trabajando en esto.
Desde el 5/10/2026.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 25/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Python
- Estrellas
- 14.6k
- Forks
- 3.5k
- Merge medio
- 2 d 5 h
- PR fusionados (30 d)
- 27
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de pytest-dev/pytest
-
monkeypatch.setattr fails to undo on objects with a custom __setattr__ (regression from #14969)Posiblemente ocupada @Maurenz2530 la tomó hace 12 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
pytest-dev/pytest#15099 · 6 comentarios ·
Los mantenedores suelen responder en 1 día
-
Allow dotted test filenames (`*.test.py`) via one-line change to `compute_module_name`Quizá libre de nuevo @siddy-stack la tomó hace 52 días y no hay ningún pull request abierto. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
pytest-dev/pytest#14514 · 6 comentarios ·
Los mantenedores suelen responder en 1 día
-
Expose CaptureManager as public APIQuizá libre de nuevo @harsh21234i la tomó hace 189 días y no hay ningún pull request abierto. Abiertotype: enhancement type: feature-branch
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
pytest-dev/pytest#14186 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Docs on warnings filters should note that `ResourceWarning` is often delayedPosiblemente ocupada @tanishmisra9 la tomó hace 108 días. Abiertotype: docs
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
pytest-dev/pytest#9825 · 7 comentarios ·
Los mantenedores suelen responder en 1 día
-
conftest.py: support importorskip at import, make every other outcome exception a usage errorPosiblemente ocupada @RonnyPfannschmidt la tomó hace 2 días. Abiertotopic: collection
pytest-dev/pytest#15142 · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de pytest-dev/pytest
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Deepak3699/Ai_Mentor#244 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
btclib-org/btclib-node#1880 ·
Los mantenedores suelen responder en 1 día
-
CONTRIBUTING.md: say how ticketless bug fixes and feature PRs are handledPosiblemente ocupada @khuisman la tomó hoy. Abiertov0.9.2
Dificultad 1/5 Menos de una hora Aptitud para principiantes 84/100
khuisman/mcp-gee-sweet#941 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
pyjanitor-devs/pyjanitor#1758 ·
Los mantenedores suelen responder en 1 día
-
bug ready for review
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
odysseus-dev/odysseus#6641 ·
Los mantenedores suelen responder en 1 día