[issue2578] Figure out what to do with unittest's redundant APIs
Guido van Rossum
report at bugs.python.org
Mon Mar 30 21:47:35 CEST 2009
Guido van Rossum <guido at python.org> added the comment:
> Antoine Pitrou <pitrou at free.fr> added the comment:
> Wouldn't it be simpler to make assertRaises return the exception and let
> the calling code match it as it feels like?
Hm, that sounds awfully familiar. I can't recall if there was ever a
good reason not to do this.
> (or, at least, find a shorter name than assertRaisesWithRegexpMatch :-))
assertRaisesRegex?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2578>
_______________________________________
More information about the Python-bugs-list
mailing list