Message345500
"Suppose failureException is set to TypeError on that TestCase class, how would your assertEquals signal failure to the test runner?"
failureException is an artefact from unittest.TestCase. It's only supposed to be used in a TestCase context, with an unittest-compatible runner. If people corrupt it, I guess it's their problem?
The point of decoupling is imho that other test runner might use the separate set of assertions. These assertions should raise a sensible default (i.e AssertionError) when encountering troubles, and accepting an alternate class as parameter will allow each test framework to customize the way these assertions behave for it. |
|
Date |
User |
Action |
Args |
2019-06-13 11:43:48 | pakal | set | recipients:
+ pakal, ncoghlan, rbcollins, eric.araujo, r.david.murray, michael.foord, Julian, martin.panter, serhiy.storchaka, Gregory.Salvan |
2019-06-13 11:43:48 | pakal | set | messageid: <1560426228.2.0.645981972677.issue19645@roundup.psfhosted.org> |
2019-06-13 11:43:48 | pakal | link | issue19645 messages |
2019-06-13 11:43:48 | pakal | create | |
|