summaryrefslogtreecommitdiffstats
path: root/Python/pyfpe.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-08-30 17:38:34 (GMT)
committerGitHub <noreply@github.com>2021-08-30 17:38:34 (GMT)
commitd65fad04fad1a73b6bb17bcb08ca6f0a24376952 (patch)
tree9e8ba8e47db04efe4a71be47780d2b9d256891f7 /Python/pyfpe.c
parent243b8de0b15061704581974c0a27db1232a43b93 (diff)
downloadcpython-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/pyfpe.c')
0 files changed, 0 insertions, 0 deletions