cpython/Misc/NEWS.d/next/Library/2022-11-21-13-49-03.gh-issu...

4 lines
217 B
ReStructuredText

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.