[issue19645] decouple unittest assertions from the TestCase class

Robert Collins report at bugs.python.org
Thu Jun 13 04:59:39 EDT 2019


Robert Collins <robertc at robertcollins.net> added the comment:

Sorry for the slow reply here;

There are API breaks involved in any decoupling that involves the exception raising because of the failureException attribute. Something with signalling that can be adapted by other test suites etc might have merit, but I think we are lacking a clear use case for doing this to the existing exceptions. Setting up a way for new things to be more easily used by users of other test frameworks is quite attractive; perhaps just writing them as separate functions with an adapter to failureException would be sufficient.

----------
versions: +Python 3.9 -Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue19645>
_______________________________________


More information about the Python-bugs-list mailing list