[issue43913] unittest module cleanup functions not run unless tearDownModule() is defined

Serhiy Storchaka report at bugs.python.org
Sun Aug 22 14:36:37 EDT 2021


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

Functions registered with TestCase.addClassCleanup are called because TestCase has default implementation of tearDownClass. But you can suppress it by setting tearDownClass = None. So there is a similar issue with class cleanup functions.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43913>
_______________________________________


More information about the Python-bugs-list mailing list