Message345487
| Author |
pakal |
| Recipients |
Gregory.Salvan, Julian, eric.araujo, martin.panter, michael.foord, ncoghlan, pakal, r.david.murray, rbcollins, serhiy.storchaka |
| Date |
2019年06月13日.09:50:01 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1560419401.29.0.138239180994.issue19645@roundup.psfhosted.org> |
| In-reply-to |
| Content |
I don't get it, why would failureException block anything ? The unittest.TestCase API must remain the same anyway, but it could become just a wrapper towards external assertions.
For example :
class TestCase:
assertEqual = wrap(assertions.assert_equal)
Where "wrap" for example is some kind of functools.partial() injecting into external assertions a parameter "failure_exception_class". Having all these external assertions take such a parameter (defaulting to AssertionError) would be a great plus for adaptability anyway. |
|