cpython/Lib/unittest/test
Serhiy Storchaka 9827710a40
[3.9] bpo-43913: Fix bugs in cleaning up classes and modules in unittest. (GH-28006) (GH-28071)
* 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 08d9e597c8)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-08-30 19:22:21 +02:00
..
testmock [3.9] bpo-42532: Check if NonCallableMock's spec_arg is not None instead of call its __bool__ function (GH-23613) (GH-23676) 2020-12-14 11:19:16 +05:30
__init__.py
__main__.py
_test_warnings.py
dummy.py
support.py
test_assertions.py [3.9] bpo-25130: Add calls of gc.collect() in tests to support PyPy (GH-28005). (GH-28028) 2021-08-29 15:08:32 +03:00
test_async_case.py bpo-39101: Fixes BaseException hang in IsolatedAsyncioTestCase. (GH-22654) 2020-12-16 09:56:10 -08:00
test_break.py
test_case.py [3.9] bpo-25130: Add calls of gc.collect() in tests to support PyPy (GH-28005). (GH-28028) 2021-08-29 15:08:32 +03:00
test_discovery.py bpo-9949: Enable symlink traversal for ntpath.realpath (GH-15287) 2019-08-21 13:43:06 -07:00
test_functiontestcase.py
test_loader.py bpo-35767: Fix unittest.loader to allow partials as test_functions (#11600) 2019-01-23 21:57:25 +01:00
test_program.py bpo-40462: fix variable and function names (GH-19832) 2020-05-01 05:49:35 -07:00
test_result.py [3.9] bpo-43913: Fix bugs in cleaning up classes and modules in unittest. (GH-28006) (GH-28071) 2021-08-30 19:22:21 +02:00
test_runner.py [3.9] bpo-43913: Fix bugs in cleaning up classes and modules in unittest. (GH-28006) (GH-28071) 2021-08-30 19:22:21 +02:00
test_setups.py
test_skipping.py bpo-41620: TestCase.run() now always return a TestResult instance (GH-28030) (GH-28065) 2021-08-30 15:42:34 +02:00
test_suite.py