cpython/Lib/unittest
Miss Islington (bot) 232add0241
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:50:03 -07:00
..
test bpo-33746: Fix test_unittest.testRegisterResult() in verbose mode (GH-7799) 2018-06-20 02:50:03 -07:00
__init__.py Issue #28303: Fix grammar in unittest.__doc__, patch by Shlomi Fish 2016-09-28 17:28:41 +03:00
__main__.py bpo-29919: Remove unused imports found by pyflakes (#137) 2017-03-27 16:05:26 +02:00
case.py Update TestCase.assertAlmostEqual and assertNotAlmostEqual docstrings. (GH-3998) 2017-10-18 10:01:23 -07:00
loader.py bpo-32071: Fix regression and add What's New entry (#4589) 2017-11-28 20:40:44 +01:00
main.py bpo-32071: Add unittest -k option (#4496) 2017-11-25 16:23:52 +01:00
mock.py pypi.python.org -> pypi.org (GH-7613) (GH-7614) 2018-06-11 01:05:22 -04:00
result.py
runner.py
signals.py
suite.py
util.py bpo-32360: unittest.util: Use Counter instead of custom count function (GH-4994) 2018-01-24 16:49:58 +09:00