SIGN IN SIGN UP

[3.12] Fix test_generators: save/restore warnings filters (GH-108246) (#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 531930f47f6b2a548d31e62cb4ad3e215a24bf53)

Co-authored-by: Victor Stinner <vstinner@python.org>
M
Miss Islington (bot) committed
b26a7b78c9658a9b888f56ce3dc8cfae127d1eca
Parent: 47f60c3
Committed by GitHub <noreply@github.com> on 8/22/2023, 10:00:07 AM