Skip to content

Fix test_generators: save/restore warnings filters #108246

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 21, 2023

Conversation

vstinner
Copy link
Member

Previously, depending on existing filters, the test could modify the warnings and so fail as "env changed".

Previously, depending on existing filters, the test
could modify the warnings and so fail as "env changed".
@bedevere-bot bedevere-bot added tests Tests in the Lib/test dir awaiting core review labels Aug 21, 2023
@vstinner vstinner enabled auto-merge (squash) August 21, 2023 23:21
@vstinner vstinner merged commit 531930f into python:main Aug 21, 2023
@miss-islington
Copy link
Contributor

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

@bedevere-bot
Copy link

GH-108249 is a backport of this pull request to the 3.12 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.12 only security fixes label Aug 21, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 21, 2023
Previously, depending on existing filters, the test
could modify the warnings and so fail as "env changed".
(cherry picked from commit 531930f)

Co-authored-by: Victor Stinner <[email protected]>
@vstinner vstinner deleted the test_generators branch August 22, 2023 00:47
Yhg1s pushed a commit that referenced this pull request Aug 22, 2023
…#108249)

Fix test_generators: save/restore warnings filters (GH-108246)

Previously, depending on existing filters, the test
could modify the warnings and so fail as "env changed".
(cherry picked from commit 531930f)

Co-authored-by: Victor Stinner <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip issue skip news tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants