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.
V
Victor Stinner committed
fd8fbce495c32b0cbc13f71a8e9d4eec6f48c844
Parent: 9bb9223
Committed by GitHub <noreply@github.com>
on 6/20/2018, 9:29:33 AM