Message389328
Right now, this code:
class FooError(Exception): pass
class BarError(Exception): pass
def test_me(self):
with self.assertRaises(FooError):
raise BarError("something")
will have the error "BarError: something" with no indication that an exception was expected but just that we got the wrong one.
It would be help to change the message to something like:
Expected exception of type FooError but exception BarError('something') was raised. |
|
Date |
User |
Action |
Args |
2021-03-22 16:16:06 | rsk2 | set | recipients:
+ rsk2 |
2021-03-22 16:16:06 | rsk2 | set | messageid: <1616429766.92.0.297524624601.issue43596@roundup.psfhosted.org> |
2021-03-22 16:16:06 | rsk2 | link | issue43596 messages |
2021-03-22 16:16:06 | rsk2 | create | |
|