diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-08-30 17:38:34 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-30 17:38:34 (GMT) |
commit | d65fad04fad1a73b6bb17bcb08ca6f0a24376952 (patch) | |
tree | 9e8ba8e47db04efe4a71be47780d2b9d256891f7 /Python/pyhash.c | |
parent | 243b8de0b15061704581974c0a27db1232a43b93 (diff) | |
download | cpython-d65fad04fad1a73b6bb17bcb08ca6f0a24376952.zip cpython-d65fad04fad1a73b6bb17bcb08ca6f0a24376952.tar.gz cpython-d65fad04fad1a73b6bb17bcb08ca6f0a24376952.tar.bz2 |
bpo-43913: Fix bugs in cleaning up classes and modules in unittest. (GH-28006)
* Functions registered with addModuleCleanup() were not called unless
the user defines tearDownModule() in their test module.
* Functions registered with addClassCleanup() were not called if
tearDownClass is set to None.
* Buffering in TestResult did not work with functions registered
with addClassCleanup() and addModuleCleanup().
* Errors in functions registered with addClassCleanup() and
addModuleCleanup() were not handled correctly in buffered and
debug modes.
* Errors in setUpModule() and functions registered with
addModuleCleanup() were reported in wrong order.
* And several lesser bugs.
(cherry picked from commit 08d9e597c8ef5a2b26375ac954fdf224f5d82c3c)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Python/pyhash.c')
0 files changed, 0 insertions, 0 deletions