TestCase._reset() does not clear force_failure back to None. If a test fails via expectThat during a first run, force_failure remains set to True. On the second run, even if all assertions pass, Runtest._run_core() sees force_failure == True and forces the test to fail. The test is condemned to stay in a FAIL state indefinitely, regardless of actual outcomes.
TestCase._reset()does not clearforce_failureback toNone. If a test fails viaexpectThatduring a first run,force_failureremains set toTrue. On the second run, even if all assertions pass,Runtest._run_core()sees force_failure == True and forces the test to fail. The test is condemned to stay in a FAIL state indefinitely, regardless of actual outcomes.