doctest cause warnings in tests using generators

Abierto
#65,377 5 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
28/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
python
Área
testing-qa

Línea de trabajo

Start by reviewing the three linked doctest.txt files, especially the spurious-warning and corrected examples, then reproduce the generator-related warning described in issue 21178. Compare the examples to determine what test behavior needs changing; done means the relevant doctest runs without the unintended warning while preserving the corrected case.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

3.11 3.12 3.13 stdlib type-bug
BPO 21178
Nosy @terryjreedy, @ncoghlan, @iritkatriel
Files
  • doctest.txt: doctest with spurious warning
  • doctest.txt: corrected doctest
  • doctest.txt: simplified doctest
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2014-04-08.10:49:06.857>
    labels = ['type-bug', 'tests', '3.9', '3.10', '3.11']
    title = 'doctest cause warnings in tests using generators'
    updated_at = <Date 2021-12-10.18:23:29.804>
    user = 'https://bugs.python.org/oluensdorf'
    

    bugs.python.org fields:

    activity = <Date 2021-12-10.18:23:29.804>
    actor = 'iritkatriel'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Tests']
    creation = <Date 2014-04-08.10:49:06.857>
    creator = 'oluensdorf'
    dependencies = []
    files = ['34760', '34761', '34790']
    hgrepos = []
    issue_num = 21178
    keywords = []
    message_count = 5.0
    messages = ['215750', '215755', '215948', '215965', '408239']
    nosy_count = 4.0
    nosy_names = ['terry.reedy', 'ncoghlan', 'oluensdorf', 'iritkatriel']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'needs patch'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue21178'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']
    

    Lenguaje dominante
    Python
    Estrellas
    77.2k
    Forks
    36k
    Merge medio
    1 d 9 h
    PR fusionados (30 d)
    558

    Guía de contribución

    Abrir la guía de contribución

    Primeros pasos

    1. Lee el issue completo y luego la guía de contribución del proyecto.
    2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
    3. Haz un fork del repositorio y trabaja en una rama.
    4. Abre un pull request que haga referencia al número del issue.

    Más de python/cpython

    Todos los issues de python/cpython

    Issues similares

    Más issues de Python

    Recibe los nuevos issues en tu correo

    Un resumen breve de issues de GitHub para principiantes.