cpython/Lib/unittest/test
Miss Islington (bot) 2b75742139
bpo-33746: Fix test_unittest.testRegisterResult() in verbose mode (GH-7799)
Only make sure that the result is in unittest.signals._results, don't
check the full content of unittest.signals._results.

support._run_suite() uses TextTestRunner in verbose mode, but
TextTestRunner.run() calls registerResult(result) which made the test
fail with "odd object in result set".

Call also removeResult() to restore unittest.signals._results to
avoid test side effect.
(cherry picked from commit fd8fbce495)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
2018-06-20 02:54:32 -07:00
..
testmock
__init__.py
__main__.py
_test_warnings.py
dummy.py
support.py
test_assertions.py
test_break.py bpo-33746: Fix test_unittest.testRegisterResult() in verbose mode (GH-7799) 2018-06-20 02:54:32 -07:00
test_case.py
test_discovery.py bpo-33748: fix tests altering sys.path and sys.modules (GH-7433) (GH-7603) 2018-06-10 17:45:51 -04:00
test_functiontestcase.py
test_loader.py
test_program.py
test_result.py
test_runner.py
test_setups.py
test_skipping.py
test_suite.py