[Numpy-discussion] test errors on deprecation/runtime warnings

Ralf Gommers ralf.gommers@googlemail....
Sat Feb 18 03:13:32 CST 2012


2012/2/17 Stéfan van der Walt <stefan@sun.ac.za>

> Hi Ralf
>
> On Thu, Feb 16, 2012 at 11:05 AM, Ralf Gommers
> <ralf.gommers@googlemail.com> wrote:
> > Last week we merged https://github.com/numpy/numpy/pull/201, which
> causes
> > DeprecationWarning's and RuntimeWarning's to be converted to errors if
> they
> > occur when running the test suite.
>
> It looks like this change affects other packages, too,


It does, which is why I wanted to bring it up here.


> which may legitimately raise RuntimeWarnings while running their test
> suites
> (unless I read the patch wrong).  Would it be an option to rather add
> a flag (False by default) to enable this behaviour, and enable it
> inside of numpy.test() ?
>

Well, the idea is that this behavior is the correct one for all packages.
It calls attention to those RuntimeWarnings, which may only occur on
certain platforms. If they're legitimate, you silence them in the test
suite of that package. If not, you fix them. Would you agree with that? Or
would you prefer to just ignore DeprecationWarnings and/or RuntimeWarnings
in skimage for example?

Note that the changed behavior would only be visible for people running
numpy master.

Ralf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20120218/65bf3ef1/attachment.html 


More information about the NumPy-Discussion mailing list