python / python/cpython

Consider running `Hypothesis` tests with `-We`

Open
#136,409 0 comments 0 reactions 1 assignee View on GitHub

@sobolevn is already working on this.

Since Jul 8, 2025.

infra tests
Dominant language
Python
Stars
77.2k
Forks
35.9k
PR merge metrics
PR metrics pending

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.