cpython/Lib/unittest/test
Victor Stinner fd8fbce495
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.
2018-06-20 11:29:33 +02:00
..
testmock bpo-33516: Add support for __round__ in MagicMock (GH-6880) 2018-05-22 22:01:10 +02:00
__init__.py
__main__.py
_test_warnings.py
dummy.py
support.py Issue #24245: Eliminated senseless expect clauses that have no any effect. 2015-05-20 16:10:04 +03:00
test_assertions.py #30190: fix invalid escape sequence warnings (#1534) 2017-05-10 20:13:20 +02:00
test_break.py bpo-33746: Fix test_unittest.testRegisterResult() in verbose mode (GH-7799) 2018-06-20 11:29:33 +02:00
test_case.py Fix miscellaneous typos (#4275) 2017-11-05 15:37:50 +02:00
test_discovery.py bpo-33748: fix tests altering sys.path and sys.modules (GH-7433) 2018-06-10 10:10:28 +03:00
test_functiontestcase.py
test_loader.py bpo-32071: Fix regression and add What's New entry (#4589) 2017-11-28 20:40:44 +01:00
test_program.py bpo-32071: Add unittest -k option (#4496) 2017-11-25 16:23:52 +01:00
test_result.py bpo-30664: The description of a unittest subtest now preserves the (#2265) 2017-06-23 21:47:39 +03:00
test_runner.py bpo-32230: Set sys.warnoptions with -X dev (#4820) 2017-12-12 22:59:48 +01:00
test_setups.py
test_skipping.py Issue #21112: Fix regression in unittest.expectedFailure on subclasses. 2015-08-28 10:34:51 +12:00
test_suite.py