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 [3.6] bpo-32297: Fix misspellings in Python source code comments (GH-4803) (#4864) 2017-12-14 16:19:51 +02:00
__init__.py
__main__.py Issue #19013: add a __main__ to unittest.test to ease CLI invocation 2013-09-14 00:37:18 +02:00
_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 #27364: fix "incorrect" uses of escape character in the stdlib. 2016-09-08 13:59:53 -04:00
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 bpo-23890: Fix ref cycle in TestCase.assertRaises (#858) 2017-06-16 00:18:15 +02:00
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 #22092: use absolute imports in unittest tests. Patch by Vajrasky Kok. 2014-08-07 03:20:22 +03:00
test_loader.py Issue 29274: Merge doc fixes from 3.5 2017-01-18 12:11:12 +00:00
test_program.py Issue #22936: Allow showing local variables in unittest errors. 2015-03-06 13:46:35 +13:00
test_result.py Issue #25651: Allow falsy values to be used for msg parameter of subTest() 2016-09-21 19:34:15 +03:00
test_runner.py Fix ResourceWarning in test_unittest when interrupted 2016-03-30 01:15:28 +02:00
test_setups.py Issue #22032: __qualname__ instead of __name__ is now always used to format 2014-07-22 15:00:37 +03:00
test_skipping.py Issue #21112: Fix regression in unittest.expectedFailure on subclasses. 2015-08-28 10:34:51 +12:00
test_suite.py #22092: use absolute imports in unittest tests. Patch by Vajrasky Kok. 2014-08-07 03:20:22 +03:00