python / python/cpython

Consider running `Hypothesis` tests with `-We`

Aberta
#136,409 0 comentários 0 reações 1 responsável Ver no GitHub

@sobolevn já está trabalhando nisso.

Desde 8/7/2025.

infra tests
Linguagem predominante
Python
Estrelas
77.2k
Forks
35.9k
Métricas de merge de PRs
Métricas de PR pendentes

Descrição

Currently we never run tests in CI with -We.

» ag '\-W(e| error)' .github
.github/workflows/build.yml
79:        run: autoreconf -ivf -Werror
                        

This might be a problem for several reasons:

  • Warnings might be raised and unseen for quite some time
  • -We can break something that it should not break, we never check for it

This is especially true for Hypothesis runs, which has its own warnings, sometimes not very expected ones, like in https://github.com/python/cpython/pull/136384

My proposal: let's try to research if it is possible and if it is a good idea. And maybe eventually run Hypothesis tests with -We in our CI.

Please, share your ideas / concerns about this change.

Guia de contribuição

Abrir o guia de contribuição

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.