Skip to content

Conversation

@mgorny
Copy link
Contributor

@mgorny mgorny commented Jun 3, 2025

Explicitly pass -Werror to runpytester() in the few additional tests needing it, in order to fix test failures when the test suite is run with -Wdefault or a similar override.

Fixes #13480


  • Include documentation when adding new features.
  • Include new tests or update existing tests when applicable.
  • Allow maintainers to push and squash when merging my commits. Please uncheck this if you prefer to squash the commits yourself.

If this change fixes an issue, please:

  • Add text like closes #XYZW to the PR description and/or commits (where XYZW is the issue number). See the github docs for more information.

Unless your change is trivial or a small documentation fix (e.g., a typo or reword of a small section) please:

  • Create a new changelog file in the changelog folder, with a name like <ISSUE NUMBER>.<TYPE>.rst. See changelog/README.rst for details.

    Write sentences in the past or present tense, examples:

    • Improved verbose diff output with sequences.
    • Terminal summary statistics now use multiple colors.

    Also make sure to end the sentence with a ..

  • Add yourself to AUTHORS in alphabetical order.

@psf-chronographer psf-chronographer bot added the bot:chronographer:provided (automation) changelog entry is part of PR label Jun 3, 2025
mgorny added a commit to mgorny/pytest that referenced this pull request Jun 3, 2025
Explicitly pass `-Werror` to `runpytester()` in the few additional
tests needing it, in order to fix test failures when the test suite
is run with `-Wdefault` or a similar override.

Fixes pytest-dev#13480
@bluetech
Copy link
Member

The unraisableexception tests were handled in another PR, so this is ready to go. I tweaked the changelog a bit.

@mgorny
Copy link
Contributor Author

mgorny commented Jun 18, 2025

Thanks!

@bluetech bluetech merged commit 667398f into pytest-dev:main Jun 18, 2025
36 checks passed
@patchback
Copy link

patchback bot commented Jun 18, 2025

Backport to 8.4.x: 💚 backport PR created

✅ Backport PR branch: patchback/backports/8.4.x/667398f53b7ca9a19a540054b03d505b84379114/pr-13481

Backported as #13538

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Jun 18, 2025
testing: Explicitly pass `-Werror` to tests needing it
(cherry picked from commit 667398f)
bluetech added a commit that referenced this pull request Jun 18, 2025
…67398f53b7ca9a19a540054b03d505b84379114/pr-13481

[PR #13481/667398f5 backport][8.4.x] testing: Explicitly pass `-Werror` to tests needing it
nicoddemus added a commit to nicoddemus/pytest that referenced this pull request Jun 22, 2025
Since this is related only to internal testing and does not affect end-users, it is more appropriate to announce it in the "Contributor" section of the changelog.

Follow up to pytest-dev#13481.
nicoddemus added a commit that referenced this pull request Jun 24, 2025
Since this is related only to internal testing and does not affect end-users, it is more appropriate to announce it in the "Contributor" section of the changelog.

Follow up to #13481.
patchback bot pushed a commit that referenced this pull request Jun 24, 2025
Since this is related only to internal testing and does not affect end-users, it is more appropriate to announce it in the "Contributor" section of the changelog.

Follow up to #13481.

(cherry picked from commit cc580b5)
nicoddemus added a commit that referenced this pull request Jun 24, 2025
Since this is related only to internal testing and does not affect end-users, it is more appropriate to announce it in the "Contributor" section of the changelog.

Follow up to #13481.

(cherry picked from commit cc580b5)

Co-authored-by: Bruno Oliveira <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:chronographer:provided (automation) changelog entry is part of PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pytest's test suite fails if run with -Wdefault

3 participants