[issue18054] Add more exception related assertions to unittest

Michael Foord report at bugs.python.org
Tue May 28 11:44:35 CEST 2013


Michael Foord added the comment:

I'm slightly torn. 

TestCase has a wide (waaaay too wide) API and adding methods makes it wider. The use cases for these methods are relatively niche, so my instinct would be that these don't meet the bar for inclusion on TestCase.

On the other hand, despite their brevity they're hard to get right, so having them in the standard library is helpful from that point of view.

I might be more sympathetic to having some helper mixin classes, so that we can provide esoteric-but-difficult assert methods without having to dump them all on TestCase.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18054>
_______________________________________


More information about the Python-bugs-list mailing list