Message369922
`unittest.TestCase.assertTrue` is simple enough (the entire implementation is copied below) that there is almost no way for it to fail to raise some kind of exception when its first argument is not truthy:
def assertTrue(self, expr, msg=None):
"""Check that the expression is true."""
if not expr:
msg = self._formatMessage(msg, "%s is not true" % safe_repr(expr))
raise self.failureException(msg)
This basically hasn't changed in the 19 years since the unittest module was added (though variously at times named `assert_` or `failUnless`), so I'm going to go ahead and close the issue. |
|
Date |
User |
Action |
Args |
2020-05-25 20:31:34 | zach.ware | set | recipients:
+ zach.ware, steven.daprano, serhiy.storchaka, lee yummy |
2020-05-25 20:31:34 | zach.ware | set | messageid: <1590438694.21.0.55430685837.issue40761@roundup.psfhosted.org> |
2020-05-25 20:31:34 | zach.ware | link | issue40761 messages |
2020-05-25 20:31:34 | zach.ware | create | |
|