Closed
Description
Bug report
Most except self.failureClass
cases have else
branch where we can ensure that the exception really did happen:
cpython/Lib/test/test_unittest/test_case.py
Lines 831 to 837 in d4039d3
But, some rare ones do not have them:
cpython/Lib/test/test_unittest/test_case.py
Lines 1148 to 1154 in d4039d3
So, in theory they can just succeed and except
branch might never be called. This is a theorical problem, but it is still a problem.
I propose to add else
branches to these tests, just to be safe.