diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2022-11-22 17:11:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-22 17:11:57 (GMT) |
commit | 400d41b8ea73e71ca583daca94da3db06417f210 (patch) | |
tree | 526b11eefc02dfb811a4e64026c084a9823db180 /Misc/NEWS.d | |
parent | 190331ed280ba292dc3d0419f65ed2ecf12aa06e (diff) | |
download | cpython-400d41b8ea73e71ca583daca94da3db06417f210.zip cpython-400d41b8ea73e71ca583daca94da3db06417f210.tar.gz cpython-400d41b8ea73e71ca583daca94da3db06417f210.tar.bz2 |
[3.10] gh-99645: Fix a bug in handling class cleanups in unittest.TestCase (GH-99646) (GH-99699)
Now addClassCleanup() uses separate lists for different TestCase subclasses,
and doClassCleanups() only cleans up the particular class.
(cherry picked from commit c2102136be569e6fc8ed90181f229b46d07142f8)
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r-- | Misc/NEWS.d/next/Library/2022-11-21-13-49-03.gh-issue-99645.9w1QKq.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2022-11-21-13-49-03.gh-issue-99645.9w1QKq.rst b/Misc/NEWS.d/next/Library/2022-11-21-13-49-03.gh-issue-99645.9w1QKq.rst new file mode 100644 index 0000000..f6ee449 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2022-11-21-13-49-03.gh-issue-99645.9w1QKq.rst @@ -0,0 +1,3 @@ +Fix a bug in handling class cleanups in :class:`unittest.TestCase`. Now +``addClassCleanup()`` uses separate lists for different ``TestCase`` +subclasses, and ``doClassCleanups()`` only cleans up the particular class. |