• Victor Stinner's avatar
    bpo-33746: Fix test_unittest.testRegisterResult() in verbose mode (GH-7799) · fd8fbce4
    Victor Stinner yazdı
    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.
    fd8fbce4
Adı
Son kayıt (commit)
Son güncelleme
..
testmock Loading commit data...
__init__.py Loading commit data...
__main__.py Loading commit data...
_test_warnings.py Loading commit data...
dummy.py Loading commit data...
support.py Loading commit data...
test_assertions.py Loading commit data...
test_break.py Loading commit data...
test_case.py Loading commit data...
test_discovery.py Loading commit data...
test_functiontestcase.py Loading commit data...
test_loader.py Loading commit data...
test_program.py Loading commit data...
test_result.py Loading commit data...
test_runner.py Loading commit data...
test_setups.py Loading commit data...
test_skipping.py Loading commit data...
test_suite.py Loading commit data...