Guido van Rossum <[email protected]> added the comment: > Antoine Pitrou <[email protected]> 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 <[email protected]> <http://bugs.python.org/issue2578> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
