]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-99645: Fix a bug in handling class cleanups in unittest.TestCase (GH-99646)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 22 Nov 2022 15:49:37 +0000 (17:49 +0200)
committerGitHub <noreply@github.com>
Tue, 22 Nov 2022 15:49:37 +0000 (17:49 +0200)
commitc2102136be569e6fc8ed90181f229b46d07142f8
tree9cbba443b73dfc3732f9ea135f34ff8dd5ac42ca
parentd15b9f19ac0ffb29b646735d69b29f48a71c247f
gh-99645: Fix a bug in handling class cleanups in unittest.TestCase (GH-99646)

Now addClassCleanup() uses separate lists for different TestCase subclasses,
and doClassCleanups() only cleans up the particular class.
Lib/test/test_unittest/test_runner.py
Lib/unittest/case.py
Misc/NEWS.d/next/Library/2022-11-21-13-49-03.gh-issue-99645.9w1QKq.rst [new file with mode: 0644]