]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Fix test_generators: save/restore warnings filters (#108246)
authorVictor Stinner <vstinner@python.org>
Mon, 21 Aug 2023 23:41:13 +0000 (01:41 +0200)
committerGitHub <noreply@github.com>
Mon, 21 Aug 2023 23:41:13 +0000 (23:41 +0000)
commit531930f47f6b2a548d31e62cb4ad3e215a24bf53
treec5613d898df28e80a70aef188b9a4df930bac8cf
parenta1cc74c4eebc55795877eb3be019a1bec34402f8
Fix test_generators: save/restore warnings filters (#108246)

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