[issue9754] assertWarns and assertWarnsRegexp

Antoine Pitrou report at bugs.python.org
Fri Sep 3 19:05:05 CEST 2010


Antoine Pitrou <pitrou at free.fr> added the comment:

> Patch looks good. However tests do not pass with -Werror (while test_warnings and others pass).
> 
> 
> Is there a way to catch multiple warnings on a single logical line?

I thought we could beef up the API with additional arguments.
That would be at the expense of removing the "callable" argument (and
mandating the use as a context manager), though, otherwise the signature
gets too complicated.

----------

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


More information about the Python-bugs-list mailing list