GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — testing: Explicitly pass `-Werror` to tests needing it by mgorny · Pull Request #13481 · pytest-dev/pytest

Conversation

@mgorny

@mgorny mgorny commented Jun 3, 2025

Copy link
Copy Markdown
Contributor

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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@pyba-chronographer pyba-chronographer Bot added the bot:chronographer:provided (automation) changelog entry is part of PR label Jun 3, 2025
bluetech
bluetech reviewed Jun 3, 2025
View reviewed changes
Comment thread testing/test_threadexception.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread testing/test_unraisableexception.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread testing/test_warnings.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

mgorny added a commit to mgorny/pytest that referenced this pull request Jun 3, 2025
@mgorny
Switch test_works_with_filterwarnings to skip
fd561ed
As requested in pytest-dev#13481 (comment)
@mgorny @bluetech
testing: Explicitly pass -Werror to tests needing it
a3d3918
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
bluetech force-pushed the pass-werror branch from fd561ed to a3d3918 Compare June 18, 2025 07:09
bluetech
bluetech approved these changes Jun 18, 2025
View reviewed changes
@bluetech

bluetech commented Jun 18, 2025

Copy link
Copy Markdown
Member

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bluetech bluetech added the backport 8.4.x label Jun 18, 2025
@mgorny

mgorny commented Jun 18, 2025

Copy link
Copy Markdown
Contributor Author

Thanks!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bluetech bluetech added backport 8.4.x and removed backport 8.4.x labels Jun 18, 2025
@bluetech
bluetech merged commit 667398f into pytest-dev:main Jun 18, 2025
@patchback

patchback Bot commented Jun 18, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

patchback Bot pushed a commit that referenced this pull request Jun 18, 2025
@bluetech @patchback
Merge pull request #13481 from mgorny/pass-werror
de35402
testing: Explicitly pass `-Werror` to tests needing it
(cherry picked from commit 667398f)
@patchback patchback Bot mentioned this pull request Jun 18, 2025
[PR #13481/667398f5 backport][8.4.x] testing: Explicitly pass -Werror to tests needing it #13538
Merged
4 of 6 tasks
bluetech added a commit that referenced this pull request Jun 18, 2025
@bluetech
Merge pull request #13538 from pytest-dev/patchback/backports/8.4.x/6…
c013f20
…67398f53b7ca9a19a540054b03d505b84379114/pr-13481

[PR #13481/667398f5 backport][8.4.x] testing: Explicitly pass `-Werror` to tests needing it
nicoddemus
nicoddemus reviewed Jun 18, 2025
View reviewed changes
Comment thread changelog/13480.bugfix.rst Resolved

Uh oh!

There was an error while loading. Please reload this page.

nicoddemus added a commit to nicoddemus/pytest that referenced this pull request Jun 22, 2025
@nicoddemus
Rename 13480.bugfix to 13480.contrib
a996e35
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 nicoddemus mentioned this pull request Jun 22, 2025
Rename 13480.bugfix to 13480.contrib #13554
Merged
nicoddemus added a commit that referenced this pull request Jun 24, 2025
@nicoddemus
Rename 13480.bugfix to 13480.contrib (#13554)
cc580b5
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
@nicoddemus @patchback
Rename 13480.bugfix to 13480.contrib (#13554)
517f811
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)
@patchback patchback Bot mentioned this pull request Jun 24, 2025
[PR #13554/cc580b53 backport][8.4.x] Rename 13480.bugfix to 13480.contrib #13561
Merged
nicoddemus added a commit that referenced this pull request Jun 24, 2025
@patchback @nicoddemus
Rename 13480.bugfix to 13480.contrib (#13554) (#13561)
586bef6
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

Reviewers

@nicoddemus nicoddemus nicoddemus left review comments
@bluetech bluetech bluetech approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

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

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

pytest's test suite fails if run with -Wdefault

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@mgorny @bluetech @nicoddemus
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.